Added the option to replace 3 hypens with emdash, not just endash+hyphen

This commit is contained in:
Veronica K. B. Olsen
2020-08-16 13:15:25 +02:00
parent 1a9e54d11b
commit 0acea8877a
+4
View File
@@ -891,6 +891,10 @@ class GuiDocEditor(QTextEdit):
else:
theCursor.insertText(self.typSQClose)
elif self.mainConf.doReplaceDash and theThree == "---":
theCursor.movePosition(QTextCursor.Left, QTextCursor.KeepAnchor, 3)
theCursor.insertText(nwUnicode.U_EMDASH)
elif self.mainConf.doReplaceDash and theTwo == "--":
theCursor.movePosition(QTextCursor.Left, QTextCursor.KeepAnchor, 2)
theCursor.insertText(nwUnicode.U_ENDASH)