mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI Input: Strip null characters. Fixes #2242 (Calibre only converts first chapter of document)
This commit is contained in:
parent
a487219a4b
commit
593db09fdf
@ -494,6 +494,7 @@ class MobiReader(object):
|
||||
raise MobiError('Unknown compression algorithm: %s'%repr(self.book_header.compression_type))
|
||||
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', '')
|
||||
return processed_records
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user