Drop the space in front of Synopsis and Short comments inserts

This commit is contained in:
Veronica Berglyd Olsen
2023-11-26 22:12:23 +01:00
parent b348ba6aff
commit 918b077252
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -831,11 +831,11 @@ class GuiDocEditor(QPlainTextEdit):
elif insert == nwDocInsert.QUOTE_RD:
text = self._typDQuoteC
elif insert == nwDocInsert.SYNOPSIS:
text = "% Synopsis: "
text = "%Synopsis: "
newBlock = True
goAfter = True
elif insert == nwDocInsert.SHORT:
text = "% Short: "
text = "%Short: "
newBlock = True
goAfter = True
elif insert == nwDocInsert.NEW_PAGE:
+2 -2
View File
@@ -591,11 +591,11 @@ def testGuiMenu_Insert(qtbot, monkeypatch, nwGUI, fncPath, projPath, mockRnd):
nwGUI.docEditor.setPlainText("Stuff\n")
nwGUI.mainMenu.aInsSynopsis.activate(QAction.Trigger)
assert nwGUI.docEditor.getText() == "Stuff\n% Synopsis: \n"
assert nwGUI.docEditor.getText() == "Stuff\n%Synopsis: \n"
nwGUI.docEditor.setPlainText("Stuff\n")
nwGUI.mainMenu.aInsShort.activate(QAction.Trigger)
assert nwGUI.docEditor.getText() == "Stuff\n% Short: \n"
assert nwGUI.docEditor.getText() == "Stuff\n%Short: \n"
# Insert Break or Space
# =====================