Revert last change because it might not always work.

This commit is contained in:
John Schember 2009-06-16 07:07:45 -04:00
parent 6a23f90a11
commit 4598b0238c

View File

@ -149,7 +149,7 @@ class EbookIterator(object):
if self.ebook_ext in ('lit', 'mobi', 'prc', 'opf') and cover: if self.ebook_ext in ('lit', 'mobi', 'prc', 'opf') and cover:
cfile = os.path.join(os.path.dirname(self.spine[0]), cfile = os.path.join(os.path.dirname(self.spine[0]),
'calibre_iterator_cover.html') 'calibre_iterator_cover.html')
open(cfile, 'wb').write(TITLEPAGE%cover.encode('utf-8')) open(cfile, 'wb').write(TITLEPAGE%cover)
self.spine[0:0] = [SpineItem(cfile)] self.spine[0:0] = [SpineItem(cfile)]
self.delete_on_exit.append(cfile) self.delete_on_exit.append(cfile)