Fix issue #1239527: Htmlz inline css doesn't single quote fonts & thus destroys html.

This commit is contained in:
John Schember 2013-10-14 20:11:20 -04:00
parent ecf1e290b8
commit 4e1e5d9a86

View File

@ -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))