From 14431cee13932a4f33273091b7cec857588a6c27 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Jul 2014 16:12:24 +0530 Subject: [PATCH] Edit Book: Fix regression that caused crash while syntax highlighting CSS stylesheets that contain url() tokens without enclosing quotes --- 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 1ca6571ef3..64821fb036 100644 --- a/src/calibre/gui2/tweak_book/editor/syntax/css.py +++ b/src/calibre/gui2/tweak_book/editor/syntax/css.py @@ -217,6 +217,7 @@ def content(state, text, i, formats, user_data): m = token.match(text, i) if m is not None: if name is URL_TOKEN: + h = 'link' url = m.group() prefix, main, suffix = url[:4], url[4:-1], url[-1] if len(main) > 1 and main[0] in ('"', "'") and main[0] == main[-1]: