From e6b27322811d67af6c5dc4e6220747a0ccd15494 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 29 Sep 2022 14:11:39 +0200 Subject: [PATCH] Fix insert spaces crash (#1118) --- novelwriter/gui/doceditor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/novelwriter/gui/doceditor.py b/novelwriter/gui/doceditor.py index f93fcab4..5521e628 100644 --- a/novelwriter/gui/doceditor.py +++ b/novelwriter/gui/doceditor.py @@ -1982,12 +1982,12 @@ class GuiDocEditor(QTextEdit): tCheck = tInsert if tCheck in self.mainConf.fmtPadBefore: - if self.allowSpaceBeforeColon(theText, tCheck): + if self._allowSpaceBeforeColon(theText, tCheck): nDelete = max(nDelete, 1) tInsert = self._typPadChar + tInsert if tCheck in self.mainConf.fmtPadAfter: - if self.allowSpaceBeforeColon(theText, tCheck): + if self._allowSpaceBeforeColon(theText, tCheck): nDelete = max(nDelete, 1) tInsert = tInsert + self._typPadChar