This commit is contained in:
Kovid Goyal 2009-07-05 13:09:54 -06:00
parent 9788269337
commit 6cafdb5cb8

View File

@ -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: