From 0c976d173d4919a350d27a11c74854bb16e86ca2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 18 Oct 2008 19:19:51 -0700 Subject: [PATCH] Fix #1180 (Error converting accented characters) --- src/calibre/ebooks/lrf/html/convert_from.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/lrf/html/convert_from.py b/src/calibre/ebooks/lrf/html/convert_from.py index c8fe27c34a..7b275d2b84 100644 --- a/src/calibre/ebooks/lrf/html/convert_from.py +++ b/src/calibre/ebooks/lrf/html/convert_from.py @@ -1316,7 +1316,7 @@ class HTMLConverter(object, LoggingInterface): bl = str(self.current_block.blockStyle.attrs['blockwidth'])+'px' if 'em' in tag_css['text-indent']: bl = '10pt' - indent = self.unit_convert(str(tag_css['text-indent']), pts=True, base_length=bl) + indent = self.unit_convert(unicode(tag_css['text-indent']), pts=True, base_length=bl) if not indent: indent = 0 if indent > 0 and indent < 10 * self.minimum_indent: