mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 23:17:16 +01:00
Ensure annotations span styles override all others
This commit is contained in:
parent
6834028e6a
commit
05eb665be9
1 changed files with 3 additions and 0 deletions
|
|
@ -113,6 +113,9 @@ def wrap_text_in_range(style, r, process_wrapper):
|
|||
wrapper_elem = document.createElement('span')
|
||||
wrapper_elem.dataset.calibreRangeWrapper = v'++wrapper_counter' + ''
|
||||
if style:
|
||||
if !style.endsWith(';'):
|
||||
style += ';'
|
||||
style = str.replace(style, ';', ' !important;')
|
||||
wrapper_elem.setAttribute('style', style)
|
||||
|
||||
intersecting_wrappers = {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue