Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove pagebreak elements
  • Loading branch information
Klaus Thoden committed Jun 4, 2018
1 parent 2c0257b commit 7d735cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion imxml2django.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8; mode: python -*- # -*- coding: utf-8; mode: python -*-
# Time-stamp: <2018-04-30 16:24:20 (kthoden)> # Time-stamp: <2018-06-04 15:09:32 (kthoden)>


import pickle import pickle
import os import os
Expand Down Expand Up @@ -625,6 +625,9 @@ def djangoParseObject(xmlElement, indent=False, listtype=None, listnumber=0, uid
elif xmlElement.tag == "EOAtocentry": elif xmlElement.tag == "EOAtocentry":
# throw them out for the time being # throw them out for the time being
xmlResult = etree.Element("temp") xmlResult = etree.Element("temp")
elif xmlElement.tag == "pagebreak":
# throw them out for the time being
xmlResult = etree.Element("temp")
else: else:
xmlElement.tag = "EOAparagraph" xmlElement.tag = "EOAparagraph"
quoted_paragraph = xmlElement.get("rend") quoted_paragraph = xmlElement.get("rend")
Expand Down

0 comments on commit 7d735cc

Please sign in to comment.