mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 21:33:36 +02:00
Fix #2897 (Unable to convert mobipocket (kindle azw) book)
This commit is contained in:
parent
26d217611f
commit
04b9dbb5b0
1 changed files with 1 additions and 1 deletions
|
|
@ -443,7 +443,7 @@ def cleanup_html(self):
|
|||
self.processed_html = '<html><p>' + self.processed_html.replace('\n\n', '<p>') + '</html>'
|
||||
self.processed_html = self.processed_html.replace('\r\n', '\n')
|
||||
self.processed_html = self.processed_html.replace('> <', '>\n<')
|
||||
self.processed_html = re.sub('\x14|\x15|\x1c|\x1d', '', self.processed_html)
|
||||
self.processed_html = re.sub('\x14|\x15|\x1c|\x1d|\xef|\x12|\x13|\xec', '', self.processed_html)
|
||||
|
||||
def ensure_unit(self, raw, unit='px'):
|
||||
if re.search(r'\d+$', raw) is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue