Skip to content

Commit

Permalink
Nicer formatting of publication.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Jan 13, 2020
1 parent bdc88ff commit 3582319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tei2imxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_field(xml_tree, query_path, mandatory=False, findall=False, noformat=Fal
else:
tmp_field = xml_tree.xpath(query_path, namespaces=NS_MAP)
if len(tmp_field) > 0:
return_string = tmp_field[0]
return_string = sanitize_data_string(tmp_field[0])
else:
if mandatory is True:
sys.exit("Field stored in %s is mandatory. Exiting." % query_path)
Expand Down

0 comments on commit 3582319

Please sign in to comment.