mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 07:53:09 +02:00
HTMLZ Output: Fix an error when converting a document that has SVG images
This commit is contained in:
parent
5c7b4b340a
commit
833c0db683
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ def convert(self, oeb_book, output_path, input_plugin, opts, log):
|
|||
for item in oeb_book.manifest:
|
||||
if item.media_type in OEB_IMAGES and item.href in images:
|
||||
if item.media_type == SVG_MIME:
|
||||
data = etree.tostring(item.data, encoding='unicode')
|
||||
data = etree.tostring(item.data, encoding='unicode').encode('utf-8')
|
||||
else:
|
||||
data = item.data
|
||||
fname = os.path.join(tdir, u'images', images[item.href])
|
||||
|
|
|
|||
Loading…
Reference in a new issue