mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 16:05:56 +01:00
Parse text/x-oeb1-css stylesheets
This commit is contained in:
parent
c9f0d1591d
commit
cb01eea2f2
1 changed files with 2 additions and 1 deletions
|
|
@ -1519,7 +1519,8 @@ def parse_tag(self, tag, parent_css):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue