mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:33:43 +02: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
1 changed files with 3 additions and 0 deletions
|
|
@ -192,6 +192,7 @@ def dump_text(self, elem, stylizer, page):
|
|||
# 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 @@ def dump_text(self, elem, stylizer, page):
|
|||
# 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 @@ def dump_text(self, elem, stylizer, page):
|
|||
# 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…
Reference in a new issue