Ebook-viewer: Show docx cover, if present

This commit is contained in:
Kovid Goyal 2013-06-20 12:03:45 +05:30
parent c8b9d624cd
commit 6aea840b3e

View File

@ -143,7 +143,7 @@ class EbookIterator(BookmarksMixin):
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')