mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:53:06 +02:00
...
This commit is contained in:
parent
9788269337
commit
6cafdb5cb8
1 changed files with 1 additions and 2 deletions
|
|
@ -28,9 +28,8 @@ def convert(self, oeb_book, output_path, input_plugin, opts, log):
|
|||
href, root = results.pop(key, [None, None])
|
||||
if root is not None:
|
||||
raw = etree.tostring(root, pretty_print=True,
|
||||
encoding='utf-8')
|
||||
encoding='utf-8', xml_declaration=True)
|
||||
with open(href, 'wb') as f:
|
||||
f.write('<?xml version="1.0" encoding="UTF-8" ?>\n')
|
||||
f.write(raw)
|
||||
|
||||
for item in oeb_book.manifest:
|
||||
|
|
|
|||
Loading…
Reference in a new issue