mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 18:45:20 -04:00
MOBI Input: Add support for files taht use the 'record separator' ascii character in the text
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user