mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 04:35:38 +01:00
...
This commit is contained in:
parent
9ea5715406
commit
9a8b9874a4
1 changed files with 2 additions and 1 deletions
|
|
@ -267,8 +267,9 @@ def __init__(self, tree, path, oeb, opts, profile=None,
|
|||
rules.sort()
|
||||
self.rules = rules
|
||||
self._styles = {}
|
||||
pseudo_pat = re.compile(ur':(first-letter|first-line|link|hover|visited|active|focus)', re.I)
|
||||
for _, _, cssdict, text, _ in rules:
|
||||
fl = re.search(ur':(first-letter|first-line|link|hover|visited|active|focus)', text)
|
||||
fl = pseudo_pat.search(text)
|
||||
if fl is not None:
|
||||
text = text.replace(fl.group(), '')
|
||||
selector = get_css_selector(text)
|
||||
|
|
|
|||
Loading…
Reference in a new issue