mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI Input: Add support for files taht use the 'record separator' ascii character in the text
This commit is contained in:
parent
6a9a18ecd1
commit
b2e252f805
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user