mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 06:45:55 +01:00
Revert last change because it might not always work.
This commit is contained in:
parent
6a23f90a11
commit
4598b0238c
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ def __enter__(self):
|
|||
if self.ebook_ext in ('lit', 'mobi', 'prc', 'opf') and cover:
|
||||
cfile = os.path.join(os.path.dirname(self.spine[0]),
|
||||
'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.delete_on_exit.append(cfile)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue