MOBI Input: Add support for files taht use the 'record separator' ascii character in the text

This commit is contained in:
Kovid Goyal 2009-12-12 19:01:22 -07:00
parent 6a9a18ecd1
commit b2e252f805

View File

@ -701,6 +701,7 @@ class MobiReader(object):
if self.book_header.ancient and '<html' not in self.mobi_html[:300].lower():
self.mobi_html = self.mobi_html.replace('\r ', '\n\n ')
self.mobi_html = self.mobi_html.replace('\0', '')
self.mobi_html = self.mobi_html.replace('\x1e', '') # record separator
return processed_records