mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Workaround for bug in lxml https://bugs.launchpad.net/lxml/+bug/1281139
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:
parent
b012b7cf6f
commit
73ff7bd9ae
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user