Fix #4259 (MOBI viewer crashes)

This commit is contained in:
Kovid Goyal 2009-12-23 19:42:47 -07:00
parent 3ea655ff37
commit 0d1df2ad7b
3 changed files with 128 additions and 128 deletions

View File

@ -602,7 +602,7 @@ class MobiReader(object):
* opf.cover.split('/'))):
opf.cover = None
manifest = [(htmlfile, 'text/x-oeb1-document'),
manifest = [(htmlfile, 'application/xhtml+xml'),
(os.path.abspath('styles.css'), 'text/css')]
bp = os.path.dirname(htmlfile)
for i in getattr(self, 'image_names', []):