mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
IGN:Linearizing tables now removes various table related attiributes as they cause problems with ADE
This commit is contained in:
parent
bf6f98363e
commit
d49f21d47e
@ -14,6 +14,9 @@ class LinearizeTables(object):
|
||||
for x in root.xpath('//h:table|//h:td|//h:tr|//h:th',
|
||||
namespaces=XPNSMAP):
|
||||
x.tag = 'div'
|
||||
for attr in ('valign', 'colspan', 'rowspan', 'width', 'halign'):
|
||||
if attr in x.attrib:
|
||||
del x.attrib[attr]
|
||||
|
||||
def __call__(self, oeb, context):
|
||||
for x in oeb.manifest.items:
|
||||
|
Loading…
x
Reference in New Issue
Block a user