diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py index a03c5927..32b50ebc 100644 --- a/nw/gui/doceditor.py +++ b/nw/gui/doceditor.py @@ -1728,9 +1728,13 @@ class GuiDocEditor(QTextEdit): elif theText.startswith("% "): newText = theText[2:] cOffset = 2 + if docAction == nwDocAction.BLOCK_COM: + docAction = nwDocAction.BLOCK_TXT elif theText.startswith("%"): newText = theText[1:] cOffset = 1 + if docAction == nwDocAction.BLOCK_COM: + docAction = nwDocAction.BLOCK_TXT elif theText.startswith("# "): newText = theText[2:] cOffset = 2