From 3582319f452331676e2fc2c4132a883a7a6ef886 Mon Sep 17 00:00:00 2001 From: kthoden Date: Mon, 13 Jan 2020 15:50:05 +0100 Subject: [PATCH] Nicer formatting of publication.cfg --- src/tei2imxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tei2imxml.py b/src/tei2imxml.py index c160b82..04c48cd 100755 --- a/src/tei2imxml.py +++ b/src/tei2imxml.py @@ -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)