This commit is contained in:
Kovid Goyal 2020-07-06 15:52:09 +05:30
parent 05eb665be9
commit b37ce63c86
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -113,6 +113,7 @@ def wrap_text_in_range(style, r, process_wrapper):
wrapper_elem = document.createElement('span') wrapper_elem = document.createElement('span')
wrapper_elem.dataset.calibreRangeWrapper = v'++wrapper_counter' + '' wrapper_elem.dataset.calibreRangeWrapper = v'++wrapper_counter' + ''
if style: if style:
style = style.rstrip()
if !style.endsWith(';'): if !style.endsWith(';'):
style += ';' style += ';'
style = str.replace(style, ';', ' !important;') style = str.replace(style, ';', ' !important;')