From d49f21d47ee0f22f289a7c5b28f66ae4343f429f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 15 Aug 2009 12:04:18 -0600 Subject: [PATCH] IGN:Linearizing tables now removes various table related attiributes as they cause problems with ADE --- src/calibre/ebooks/oeb/transforms/linearize_tables.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/ebooks/oeb/transforms/linearize_tables.py b/src/calibre/ebooks/oeb/transforms/linearize_tables.py index a0c11f848c..5842db90e5 100644 --- a/src/calibre/ebooks/oeb/transforms/linearize_tables.py +++ b/src/calibre/ebooks/oeb/transforms/linearize_tables.py @@ -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: