Permalink
Browse files

Remove pagebreak elements

  • Loading branch information...
kthoden committed Jun 4, 2018
1 parent 2c0257b commit 7d735ccb15aebc4fb7a3f7f329960cb2d934e5a4
Showing with 4 additions and 1 deletion.
  1. +4 −1 imxml2django.py
View
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- 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 os
@@ -625,6 +625,9 @@ def djangoParseObject(xmlElement, indent=False, listtype=None, listnumber=0, uid
elif xmlElement.tag == "EOAtocentry":
# throw them out for the time being
xmlResult = etree.Element("temp")
+ elif xmlElement.tag == "pagebreak":
+ # throw them out for the time being
+ xmlResult = etree.Element("temp")
else:
xmlElement.tag = "EOAparagraph"
quoted_paragraph = xmlElement.get("rend")

0 comments on commit 7d735cc

Please sign in to comment.