Fix #2682 (beta testing 0.6.0b8 html not zipping for conversion)

This commit is contained in:
Kovid Goyal 2009-06-21 11:10:22 -07:00
parent fb86204423
commit 03dba92e8d

View File

@ -804,10 +804,11 @@ class Manifest(object):
try:
data = etree.fromstring(data)
except etree.XMLSyntaxError:
self.oeb.logger.warn('Stripping comments from %s'%
self.oeb.logger.warn('Stripping comments and meta tags from %s'%
self.href)
data = re.compile(r'<!--.*?-->', re.DOTALL).sub('',
data)
data = re.sub(r'<meta\s+[^>]+?>', '', data)
data = etree.fromstring(data)
elif namespace(data.tag) != XHTML_NS:
# OEB_DOC_NS, but possibly others