This bug likely impacts lots of other code locations, but hopefully it
will be fixed in lxml soonish. For the moment, I will add workarounds as
and when I discover they are needed.
This commit is contained in:
Kovid Goyal 2014-02-17 20:47:00 +05:30
parent b012b7cf6f
commit 73ff7bd9ae

View File

@ -138,7 +138,7 @@ class Split(object):
page_breaks_.append((xp, x.get('pb_before', '0') == '1'))
page_break_ids.append(id)
for elem in item.data.iter():
for elem in item.data.iter(etree.Element):
elem.attrib.pop('pb_order', False)
elem.attrib.pop('pb_before', False)