mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Fix missing formatting around attribute values in the comments editor HTML syntax highlighter
This commit is contained in:
parent
a19f61bc5f
commit
379e5137e8
@ -922,6 +922,7 @@ class Highlighter(QSyntaxHighlighter):
|
||||
|
||||
if ch == '>':
|
||||
state = State_Text
|
||||
self.setFormat(pos-1, 1, self.colors['tag'])
|
||||
break
|
||||
|
||||
if not ch.isspace():
|
||||
@ -959,11 +960,13 @@ class Highlighter(QSyntaxHighlighter):
|
||||
# handle opening single quote
|
||||
if ch == "'":
|
||||
state = State_SingleQuote
|
||||
self.setFormat(pos - 1, 1, self.colors['attrval'])
|
||||
break
|
||||
|
||||
# handle opening double quote
|
||||
if ch == '"':
|
||||
state = State_DoubleQuote
|
||||
self.setFormat(pos - 1, 1, self.colors['attrval'])
|
||||
break
|
||||
|
||||
if not ch.isspace():
|
||||
|
Loading…
x
Reference in New Issue
Block a user