Drop the space in front of Synopsis and Short comments inserts
This commit is contained in:
@@ -831,11 +831,11 @@ class GuiDocEditor(QPlainTextEdit):
|
|||||||
elif insert == nwDocInsert.QUOTE_RD:
|
elif insert == nwDocInsert.QUOTE_RD:
|
||||||
text = self._typDQuoteC
|
text = self._typDQuoteC
|
||||||
elif insert == nwDocInsert.SYNOPSIS:
|
elif insert == nwDocInsert.SYNOPSIS:
|
||||||
text = "% Synopsis: "
|
text = "%Synopsis: "
|
||||||
newBlock = True
|
newBlock = True
|
||||||
goAfter = True
|
goAfter = True
|
||||||
elif insert == nwDocInsert.SHORT:
|
elif insert == nwDocInsert.SHORT:
|
||||||
text = "% Short: "
|
text = "%Short: "
|
||||||
newBlock = True
|
newBlock = True
|
||||||
goAfter = True
|
goAfter = True
|
||||||
elif insert == nwDocInsert.NEW_PAGE:
|
elif insert == nwDocInsert.NEW_PAGE:
|
||||||
|
|||||||
@@ -591,11 +591,11 @@ def testGuiMenu_Insert(qtbot, monkeypatch, nwGUI, fncPath, projPath, mockRnd):
|
|||||||
|
|
||||||
nwGUI.docEditor.setPlainText("Stuff\n")
|
nwGUI.docEditor.setPlainText("Stuff\n")
|
||||||
nwGUI.mainMenu.aInsSynopsis.activate(QAction.Trigger)
|
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.docEditor.setPlainText("Stuff\n")
|
||||||
nwGUI.mainMenu.aInsShort.activate(QAction.Trigger)
|
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
|
# Insert Break or Space
|
||||||
# =====================
|
# =====================
|
||||||
|
|||||||
Reference in New Issue
Block a user