mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
2f86ec6ccd
commit
df29ce1116
@ -77,7 +77,10 @@ def fix_errors(container, errors):
|
||||
# Fix parsing
|
||||
changed = False
|
||||
for name in {e.name for e in errors if getattr(e, 'is_parsing_error', False)}:
|
||||
try:
|
||||
root = container.parsed(name)
|
||||
except TypeError:
|
||||
continue
|
||||
container.dirty(name)
|
||||
if container.mime_map[name] in OEB_DOCS:
|
||||
for style in root.xpath('//*[local-name()="style"]'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user