From 4e1e5d9a86ac22533ee950b50f1cfd8f9b0ccd58 Mon Sep 17 00:00:00 2001 From: John Schember Date: Mon, 14 Oct 2013 20:11:20 -0400 Subject: [PATCH] Fix issue #1239527: Htmlz inline css doesn't single quote fonts & thus destroys html. --- src/calibre/ebooks/htmlz/oeb2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/htmlz/oeb2html.py b/src/calibre/ebooks/htmlz/oeb2html.py index b162d9e19c..820f6e5839 100644 --- a/src/calibre/ebooks/htmlz/oeb2html.py +++ b/src/calibre/ebooks/htmlz/oeb2html.py @@ -267,7 +267,7 @@ class OEB2HTMLInlineCSSizer(OEB2HTML): # Turn style into strings for putting in the tag. style_t = '' if style_a: - style_t = ' style="%s"' % style_a + style_t = ' style="%s"' % style_a.replace('"', "'") # Write the tag. text.append('<%s%s%s>' % (tag, at, style_t))