From 7bb32486628106931971cf24138f252d7f890c3d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 20 Nov 2013 20:26:20 +0530 Subject: [PATCH] Syntax highlight non breaking hyphens as well as non breaking spaces --- src/calibre/gui2/tweak_book/editor/syntax/html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/tweak_book/editor/syntax/html.py b/src/calibre/gui2/tweak_book/editor/syntax/html.py index fd7e238de7..39bca4e52e 100644 --- a/src/calibre/gui2/tweak_book/editor/syntax/html.py +++ b/src/calibre/gui2/tweak_book/editor/syntax/html.py @@ -28,7 +28,7 @@ attribute_name_pat = re.compile(r'''[^%s"'/><=]+''' % space_chars) self_closing_pat = re.compile(r'/\s*>') unquoted_val_pat = re.compile(r'''[^%s'"=<>`]+''' % space_chars) cdata_close_pats = {x:re.compile(r' -

Some\xa0words\xa0separated\xa0by\xa0non-breaking\xa0spaces.

+

Some\xa0words\xa0separated\xa0by\xa0non\u2011breaking\xa0spaces and non\u2011breaking hyphens.

''', path_is_raw=True)