This commit is contained in:
Kovid Goyal 2011-03-17 19:17:55 -06:00
parent 4ad90f991a
commit a51dcb24cd

View File

@ -928,7 +928,7 @@ class Manifest(object):
# Handle weird (non-HTML/fragment) files
if barename(data.tag) != 'html':
if self.href.endswith('.ncx'):
if barename(data.tag) == 'ncx':
return self._parse_xml(orig_data)
self.oeb.log.warn('File %r does not appear to be (X)HTML'%self.href)
nroot = etree.fromstring('<html></html>')