Turn off dialogue syntax highlighting in notes (#2297)

This commit is contained in:
Veronica Berglyd Olsen
2025-04-17 16:45:01 +02:00
parent ca90926e02
commit 857856ccd3
+1 -1
View File
@@ -393,7 +393,7 @@ class GuiDocHighlighter(QSyntaxHighlighter):
else: # Text Paragraph
self.setCurrentBlockState(BLOCK_TEXT)
hRules = self._txtRules if self._isNovel else self._minRules
if self._dialogParser.enabled:
if self._isNovel and self._dialogParser.enabled:
for pos, end in self._dialogParser(text):
length = end - pos
self.setFormat(pos, length, self._hStyles["dialog"])