Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Get plain text from paragraphs
  • Loading branch information
kthoden committed Jul 30, 2019
1 parent 814fe33 commit 9f817d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions imxml2django.py
Expand Up @@ -817,10 +817,7 @@ def djangoParseObject(xmlElement, indent=False, listtype=None, listnumber=0, uid
xmlResult = etree.Element("temp")
else:
xmlElement.tag = "EOAparagraph"
if xmlElement.text:
logging.debug(f"The beginning of this paragraph is: '{xmlElement.text[:40]}…'")
else:
logging.debug(f"This is a paragraph without text.")
logging.debug(f"The beginning of this paragraph is: '{libeoaconvert.gettext(xmlElement)[:40]}…'")
quoted_paragraph = xmlElement.get("rend")
if quoted_paragraph is not None and quoted_paragraph == "quoted":
xmlElement.set("rend", "quoted")
Expand Down

0 comments on commit 9f817d6

Please sign in to comment.