mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
HTMLZ Output: Fix SVG images that use xlink:href not working. Fixes #1869856 [Private bug](https://bugs.launchpad.net/calibre/+bug/1869856)
This commit is contained in:
parent
cb48dcb606
commit
cb6abd912e
@ -192,6 +192,7 @@ class OEB2HTMLNoCSSizer(OEB2HTML):
|
||||
# Turn the rest of the attributes into a string we can write with the tag.
|
||||
at = ''
|
||||
for k, v in attribs.items():
|
||||
k = k.split('}')[-1]
|
||||
at += ' %s="%s"' % (k, prepare_string_for_xml(v, attribute=True))
|
||||
|
||||
# Write the tag.
|
||||
@ -284,6 +285,7 @@ class OEB2HTMLInlineCSSizer(OEB2HTML):
|
||||
# Turn the rest of the attributes into a string we can write with the tag.
|
||||
at = ''
|
||||
for k, v in attribs.items():
|
||||
k = k.split('}')[-1]
|
||||
at += ' %s="%s"' % (k, prepare_string_for_xml(v, attribute=True))
|
||||
|
||||
# Turn style into strings for putting in the tag.
|
||||
@ -376,6 +378,7 @@ class OEB2HTMLClassCSSizer(OEB2HTML):
|
||||
# Turn the rest of the attributes into a string we can write with the tag.
|
||||
at = ''
|
||||
for k, v in attribs.items():
|
||||
k = k.split('}')[-1]
|
||||
at += ' %s="%s"' % (k, prepare_string_for_xml(v, attribute=True))
|
||||
|
||||
# Write the tag.
|
||||
|
Loading…
x
Reference in New Issue
Block a user