mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 05:45:27 +01: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
1 changed files with 3 additions and 0 deletions
|
|
@ -14,6 +14,9 @@ def linearize(self, root):
|
|||
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…
Reference in a new issue