From 19d0c2ae1be2c070a678e56fc57a0045ee93adc8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Feb 2020 08:01:33 +0530 Subject: [PATCH] Edit book: Fix syntax highlighting for break-(before|after). Fixes #1863020 [[Editor] break-after and -before are unknown properties in CSS editor](https://bugs.launchpad.net/calibre/+bug/1863020) --- src/calibre/gui2/tweak_book/editor/syntax/css.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/tweak_book/editor/syntax/css.py b/src/calibre/gui2/tweak_book/editor/syntax/css.py index f641b9f66e..1f1d117221 100644 --- a/src/calibre/gui2/tweak_book/editor/syntax/css.py +++ b/src/calibre/gui2/tweak_book/editor/syntax/css.py @@ -53,6 +53,7 @@ content_tokens = [(re.compile(k), v, n) for k, v, n in [ r'outline-style|outline-width|overflow(?:-x|-y)?|padding-bottom|' r'padding-left|padding-right|padding-top|padding|' r'page-break-after|page-break-before|page-break-inside|' + r'break-before|break-after|' r'pause-after|pause-before|pause|pitch|pitch-range|' r'play-during|position|pre-wrap|pre-line|pre|quotes|richness|right|size|' r'speak-header|speak-numeral|speak-punctuation|speak|'