MOBI Input: Do not choke on MOBI files with incorrectly encoded titles. Fixes #1100601 (Private bug)

This commit is contained in:
Kovid Goyal 2013-01-17 13:07:26 +05:30
parent 4650e8d633
commit b0b1b8c7a3

View File

@ -249,7 +249,7 @@ class MobiReader(object):
head.insert(0, m)
if not title:
title = head.makeelement('title', {})
title.text = self.book_header.title
title.text = clean_ascii_chars(self.book_header.title)
title.tail = '\n\t'
head.insert(0, title)
head.text = '\n\t'