From 038c66258b05f831478e995f0cbc13ca2f6cf653 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 13 Oct 2022 10:24:00 +0200 Subject: [PATCH] Backport fix for #1150 --- novelwriter/gui/doceditor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/novelwriter/gui/doceditor.py b/novelwriter/gui/doceditor.py index f2412242..83d971d5 100644 --- a/novelwriter/gui/doceditor.py +++ b/novelwriter/gui/doceditor.py @@ -1982,6 +1982,11 @@ class GuiDocEditor(QTextEdit): nDelete = 3 tInsert = nwUnicode.U_HELLIP + elif theOne == nwUnicode.U_LSEP: + # This resolves issue #1150 + nDelete = 1 + tInsert = nwUnicode.U_PSEP + tCheck = tInsert if tCheck in self.mainConf.fmtPadBefore: if self._allowSpaceBeforeColon(theText, tCheck):