Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Put non-splittable citation range into citedRange text
  • Loading branch information
Klaus Thoden committed Apr 5, 2018
1 parent b7a47f2 commit d1c6db6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fix_tei.py
Expand Up @@ -146,7 +146,9 @@ def parse_cited_range(list_of_xml_elements):
cited_range.set("from", split_values[0])
cited_range.set("to", split_values[2])
else:
logging.info("Splitting the page range produced unexpected result. Tried to split %s" % from_value)
logging.info("Splitting the page range produced unexpected result. Tried to split %s. Wrote to text field." % from_value)
cited_range.text = from_value
cited_range.attrib.pop("from")
unsplittable_pageref.append(from_value)

return unsplittable_pageref
Expand Down

0 comments on commit d1c6db6

Please sign in to comment.