From 2f202666026dbdfed7b2c194ce989fcd3b439954 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 10 Feb 2024 18:26:18 +0100 Subject: [PATCH] Use regular block format function for single block --- novelwriter/gui/doceditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/novelwriter/gui/doceditor.py b/novelwriter/gui/doceditor.py index 8465515e..192b00ef 100644 --- a/novelwriter/gui/doceditor.py +++ b/novelwriter/gui/doceditor.py @@ -1774,7 +1774,7 @@ class GuiDocEditor(QPlainTextEdit): """ cursor = self.textCursor() blocks = self._selectedBlocks(cursor) - if len(blocks) < 1: + if len(blocks) < 2: return self._formatBlock(action) toggle = True