Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove only if present
  • Loading branch information
kthoden committed Jul 19, 2019
1 parent 04e5a1f commit eada4af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imxml2epub.py
Expand Up @@ -1156,7 +1156,8 @@ class FootnoteError(Exception):
if xmlChild.tag == "item":
xmlChild.tag = "dd"
del xmlChild.attrib["id"]
del xmlChild.attrib["id-text"]
if xmlChild.get("id-text"):
del xmlChild.attrib["id-text"]

logging.info(f"{logseparator}Preparing Blockquotes")
xmlParagraphs = xmlEbookTree.findall(".//p")
Expand Down

0 comments on commit eada4af

Please sign in to comment.