From 84a501f86dc9a6a2e25e58c7380575ed946c9357 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 4 Oct 2019 15:51:38 -0700 Subject: remove any trailing newline --- python/grobid2json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/grobid2json.py b/python/grobid2json.py index ae31486..df21883 100755 --- a/python/grobid2json.py +++ b/python/grobid2json.py @@ -125,8 +125,8 @@ def teixml2json(content, encumbered=True): if header is None: raise ValueError("XML does not look like TEI format") application_tag = header.findall('.//{%s}appInfo/{%s}application' % (ns, ns))[0] - info['grobid_version'] = application_tag.attrib['version'] - info['grobid_timestamp'] = application_tag.attrib['when'] + info['grobid_version'] = application_tag.attrib['version'].strip() + info['grobid_timestamp'] = application_tag.attrib['when'].strip() info['title'] = header.findtext('.//{%s}analytic/{%s}title' % (ns, ns)) info['authors'] = all_authors(header.find('.//{%s}sourceDesc/{%s}biblStruct' % (ns, ns))) info['journal'] = journal_info(header) -- cgit v1.2.3