mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:54:55 +02:00
Conversion: handle the :before and :after pseudo CSS selectors correctly
This commit is contained in:
parent
9c68d50e8e
commit
5decefad7d
1 changed files with 1 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ 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)
|
||||
pseudo_pat = re.compile(ur':(first-letter|first-line|link|hover|visited|active|focus|before|after)', re.I)
|
||||
for _, _, cssdict, text, _ in rules:
|
||||
fl = pseudo_pat.search(text)
|
||||
if fl is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue