mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9788269337
commit
6cafdb5cb8
@ -28,9 +28,8 @@ class OEBOutput(OutputFormatPlugin):
|
||||
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…
x
Reference in New Issue
Block a user