mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Conversion: handle the :before and :after pseudo CSS selectors correctly
This commit is contained in:
parent
9c68d50e8e
commit
5decefad7d
@ -319,7 +319,7 @@ class Stylizer(object):
|
||||
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…
x
Reference in New Issue
Block a user