From 6cafdb5cb8cc0471a7ba8357046885d99d09da63 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 5 Jul 2009 13:09:54 -0600 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/output.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/calibre/ebooks/oeb/output.py b/src/calibre/ebooks/oeb/output.py index 2cb513293c..18c20f334d 100644 --- a/src/calibre/ebooks/oeb/output.py +++ b/src/calibre/ebooks/oeb/output.py @@ -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('\n') f.write(raw) for item in oeb_book.manifest: