mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 14:46:22 +01:00
...
This commit is contained in:
parent
371aa6ef77
commit
d9f7968aef
1 changed files with 3 additions and 2 deletions
|
|
@ -209,8 +209,9 @@ def check_xml_parsing(name, mt, raw):
|
|||
except Exception as err:
|
||||
return errors + [errcls(err.message, name)]
|
||||
|
||||
if mt in OEB_DOCS and root.nsmap.get(root.prefix, None) != XHTML_NS:
|
||||
errors.append(BadNamespace(name, root.nsmap.get(root.prefix, None)))
|
||||
if mt in OEB_DOCS:
|
||||
if root.nsmap.get(root.prefix, None) != XHTML_NS:
|
||||
errors.append(BadNamespace(name, root.nsmap.get(root.prefix, None)))
|
||||
|
||||
return errors
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue