mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix issue #1239527: Htmlz inline css doesn't single quote fonts & thus destroys html.
This commit is contained in:
parent
ecf1e290b8
commit
4e1e5d9a86
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user