IGN:Linearizing tables now removes various table related attiributes as they cause problems with ADE

This commit is contained in:
Kovid Goyal 2009-08-15 12:04:18 -06:00
parent bf6f98363e
commit d49f21d47e

View File

@ -14,6 +14,9 @@ class LinearizeTables(object):
for x in root.xpath('//h:table|//h:td|//h:tr|//h:th', for x in root.xpath('//h:table|//h:td|//h:tr|//h:th',
namespaces=XPNSMAP): namespaces=XPNSMAP):
x.tag = 'div' 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): def __call__(self, oeb, context):
for x in oeb.manifest.items: for x in oeb.manifest.items: