mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Parse text/x-oeb1-css stylesheets
This commit is contained in:
parent
c9f0d1591d
commit
cb01eea2f2
@ -1519,7 +1519,8 @@ class HTMLConverter(object, LoggingInterface):
|
|||||||
css, pcss = self.parse_css(text)
|
css, pcss = self.parse_css(text)
|
||||||
ncss.update(css)
|
ncss.update(css)
|
||||||
npcss.update(pcss)
|
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'):
|
and tag.has_key('href'):
|
||||||
path = munge_paths(self.target_prefix, tag['href'])[0]
|
path = munge_paths(self.target_prefix, tag['href'])[0]
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user