mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7230 (FB2 opening/converting problems)
This commit is contained in:
parent
24a346526d
commit
3229fa9f6c
@ -45,7 +45,7 @@ class FB2Input(InputFormatPlugin):
|
||||
log.debug('Parsing XML...')
|
||||
raw = stream.read()
|
||||
try:
|
||||
doc = etree.fromstring(raw)
|
||||
doc = etree.fromstring(raw.replace('\0', ''))
|
||||
except etree.XMLSyntaxError:
|
||||
doc = etree.fromstring(raw.replace('& ', '&'))
|
||||
self.extract_embedded_content(doc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user