Add XML header to fb2 output.

This commit is contained in:
John Schember 2009-10-10 16:35:31 -04:00
parent 4bad3508fe
commit 61e8c4222a

View File

@ -75,7 +75,6 @@ class FB2MLizer(object):
output.append(self.fb2mlize_images())
output.append(self.fb2_footer())
output = ''.join(output).replace(u'ghji87yhjko0Caliblre-toc-placeholder-for-insertion-later8ujko0987yjk', self.get_toc())
return output
return u'<?xml version="1.0" encoding="UTF-8"?>\n%s' % etree.tostring(etree.fromstring(output), encoding=unicode, pretty_print=True)
def fb2_header(self):