From b37ce63c867c9411546a82346ec5556993d56ab1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 6 Jul 2020 15:52:09 +0530 Subject: [PATCH] ... --- src/pyj/range_utils.pyj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyj/range_utils.pyj b/src/pyj/range_utils.pyj index 3a044f9646..cccd972168 100644 --- a/src/pyj/range_utils.pyj +++ b/src/pyj/range_utils.pyj @@ -113,6 +113,7 @@ def wrap_text_in_range(style, r, process_wrapper): wrapper_elem = document.createElement('span') wrapper_elem.dataset.calibreRangeWrapper = v'++wrapper_counter' + '' if style: + style = style.rstrip() if !style.endsWith(';'): style += ';' style = str.replace(style, ';', ' !important;')