diff --git a/src/eoatex2imxml.py b/src/eoatex2imxml.py index ac459d4..eb2effd 100755 --- a/src/eoatex2imxml.py +++ b/src/eoatex2imxml.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8; mode: python -*- -# Time-stamp: <2021-07-08 18:38:34 (kthoden)> +# Time-stamp: <2021-07-09 13:47:28 (kthoden)> """ Converts Latex files into a customized DocBook XML file. @@ -1222,7 +1222,7 @@ def move_anchors(xml_tree): next_paragraph = anchor.xpath("following-sibling::p[1]")[0] para_pos = libeoaconvert.get_place_in_xml_tree(next_paragraph, anchor_parent) next_paragraph.insert(0, anchor) - logging.info(f"Moved the anchor {para_pos-anchor_pos} positions down the tree.") + logging.info(f"Moved the anchor {libeoaconvert.plural(para_pos-anchor_pos, 'position')} down the tree.") except IndexError: logging.warning(f"This didn't work out: {anchor.get('id')}") pass diff --git a/src/imxml2django.py b/src/imxml2django.py index 9fc503d..534839d 100755 --- a/src/imxml2django.py +++ b/src/imxml2django.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8; mode: python -*- -# Time-stamp: <2021-07-09 11:16:13 (kthoden)> +# Time-stamp: <2021-07-09 13:48:22 (kthoden)> """ Create an XML file that can be inserted into the Django database @@ -1705,7 +1705,6 @@ def bring_footnote_down_django(footnote, fragment, footnote_number, object_numbe strChapterOrder = xmlParent.get("order") elif xmlReferenceRefTarget in dictSections: logging.debug("Found link to section") - logging.info(f"It's {xmlReferenceRefTarget}") strResult = dictSections[xmlReferenceRefTarget] xmlEOAsection = xmlEOAdocument.xpath(f".//EOAsection[@id='{xmlReferenceRefTarget}']") if len(xmlEOAsection) == 0: