mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-02 17:55:09 +01:00
Fix #8646 (conversion of kindle format to epub fails ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes)
This commit is contained in:
parent
af6ce250b3
commit
ac8ea5b16b
1 changed files with 1 additions and 1 deletions
|
|
@ -488,7 +488,7 @@ def cleanup_html(self):
|
|||
|
||||
|
||||
def remove_random_bytes(self, html):
|
||||
return re.sub('\x14|\x15|\x19|\x1c|\x1d|\xef|\x12|\x13|\xec|\x08',
|
||||
return re.sub('\x14|\x15|\x19|\x1c|\x1d|\xef|\x12|\x13|\xec|\x08|\x01|\x02|\x03|\x04|\x05|\x06|\x07',
|
||||
'', html)
|
||||
|
||||
def ensure_unit(self, raw, unit='px'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue