Implement #903 (HTML conversion should parse external "text/x-oeb1-css" stylesheets)

This commit is contained in:
Kovid Goyal 2008-07-22 21:52:57 -07:00
commit 18fa7a316c

View File

@ -1519,7 +1519,8 @@ class HTMLConverter(object, LoggingInterface):
css, pcss = self.parse_css(text)
ncss.update(css)
npcss.update(pcss)
elif tag.has_key('type') and tag['type'] == "text/css" \
elif tag.has_key('type') \
and tag['type'] in ("text/css", "text/x-oeb1-css") \
and tag.has_key('href'):
path = munge_paths(self.target_prefix, tag['href'])[0]
try: