mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-20 15:03:12 +02: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
1 changed files with 1 additions and 0 deletions
|
|
@ -701,6 +701,7 @@ def extract_text(self):
|
|||
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…
Reference in a new issue