Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clean up logging
  • Loading branch information
kthoden committed Sep 25, 2020
1 parent 13dbde7 commit 0b7e085
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/imxml2epub.py
Expand Up @@ -1055,7 +1055,7 @@ class FootnoteError(Exception):
for xmlChapter in xmlChapters:
groupings = libeoaconvert.get_bigfoot_data(xmlChapter)
xmlFootnotes = xmlChapter.xpath(".//note[not(ancestor::opener)]")
logging.info("Here come the footnotes. Found " + str(len(xmlFootnotes)))
logging.info(f"Found {str(len(xmlFootnotes))} footnotes in this chapter.")
has_old = 0 != len(xmlFootnotes)
has_new = 0 != len(
[ # flatten the association list whose values are lists, so we can take the length
Expand Down Expand Up @@ -1757,7 +1757,6 @@ class FootnoteError(Exception):
target_string = dictFigures[subref_target]
strResult += f"{target_string}{subref_tail}"
elif reference_type == "number":
logging.info("XXXXXXXX")
strResult = "!!! Cross Reference !!!"

xmlReferenceLabel = xmlReference.find("Label")
Expand Down Expand Up @@ -1798,7 +1797,6 @@ class FootnoteError(Exception):
else:
logging.error("Found unknown reference type: %s. Exiting", reference_type)
sys.exit(0)
logging.info("XXXXXXXX")
xmlReference.clear()
if args.hyperimage and hitarget_id and reference_type in ["collage", "number"]:
hyperimage_link = f"{publication_landingpage[:-11]}/{intChapterNumber}/index.html#{hitarget_id}"
Expand Down

0 comments on commit 0b7e085

Please sign in to comment.