From 843f8e0d392b22d9224b099a4a19e8c0fc2a57cc Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Mon, 4 Nov 2024 00:21:25 +0100 Subject: [PATCH] Add missing line in dialogue highlighting check --- novelwriter/text/patterns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/novelwriter/text/patterns.py b/novelwriter/text/patterns.py index e2137a4d..7fd916da 100644 --- a/novelwriter/text/patterns.py +++ b/novelwriter/text/patterns.py @@ -140,7 +140,7 @@ class DialogParser: self._break = re.compile( f"({self._narrator}\\s?.*?)(\\s?(?:{self._narrator}[{punct}]?|$))", re.UNICODE ) - self._enabled = bool(self._quotes or self._dialog or self._narrator) + self._enabled = bool(self._quotes or self._dialog or self._narrator or self._alternate) return def __call__(self, text: str) -> list[tuple[int, int]]: