From d3ef167774a2488fcf27144f36e9bbaf7a960cd2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 30 Oct 2009 14:18:11 -0600 Subject: [PATCH] Fix #3876 (UnicodeDecodeError while converting from HTML to EPUB) --- src/calibre/ebooks/oeb/transforms/linearize_tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/oeb/transforms/linearize_tables.py b/src/calibre/ebooks/oeb/transforms/linearize_tables.py index 92c3a00c7b..351db70704 100644 --- a/src/calibre/ebooks/oeb/transforms/linearize_tables.py +++ b/src/calibre/ebooks/oeb/transforms/linearize_tables.py @@ -6,14 +6,14 @@ __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal ' __docformat__ = 'restructuredtext en' -from calibre.ebooks.oeb.base import OEB_DOCS, XPath +from calibre.ebooks.oeb.base import OEB_DOCS, XPath, XHTML class LinearizeTables(object): def linearize(self, root): for x in XPath('//h:table|//h:td|//h:tr|//h:th|//h:caption|' '//h:tbody|//h:tfoot|//h:thead|//h:colgroup|//h:col')(root): - x.tag = 'div' + x.tag = XHTML('div') for attr in ('style', 'font', 'valign', 'colspan', 'width', 'height', 'rowspan', 'summary', 'align',