mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
371aa6ef77
commit
d9f7968aef
@ -209,7 +209,8 @@ def check_xml_parsing(name, mt, raw):
|
|||||||
except Exception as err:
|
except Exception as err:
|
||||||
return errors + [errcls(err.message, name)]
|
return errors + [errcls(err.message, name)]
|
||||||
|
|
||||||
if mt in OEB_DOCS and root.nsmap.get(root.prefix, None) != XHTML_NS:
|
if mt in OEB_DOCS:
|
||||||
|
if root.nsmap.get(root.prefix, None) != XHTML_NS:
|
||||||
errors.append(BadNamespace(name, root.nsmap.get(root.prefix, None)))
|
errors.append(BadNamespace(name, root.nsmap.get(root.prefix, None)))
|
||||||
|
|
||||||
return errors
|
return errors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user