mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:52:31 +02:00
Ebook-viewer: Show docx cover, if present
This commit is contained in:
parent
c8b9d624cd
commit
6aea840b3e
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ def __enter__(self, processed=False, only_input_plugin=False,
|
|||
|
||||
cover = self.opf.cover
|
||||
if cover and self.ebook_ext in {'lit', 'mobi', 'prc', 'opf', 'fb2',
|
||||
'azw', 'azw3'}:
|
||||
'azw', 'azw3', 'docx'}:
|
||||
cfile = os.path.join(self.base, 'calibre_iterator_cover.html')
|
||||
rcpath = os.path.relpath(cover, self.base).replace(os.sep, '/')
|
||||
chtml = (TITLEPAGE%prepare_string_for_xml(rcpath, True)).encode('utf-8')
|
||||
|
|
|
|||
Loading…
Reference in a new issue