Added the option to replace 3 hypens with emdash, not just endash+hyphen
This commit is contained in:
@@ -891,6 +891,10 @@ class GuiDocEditor(QTextEdit):
|
|||||||
else:
|
else:
|
||||||
theCursor.insertText(self.typSQClose)
|
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 == "--":
|
elif self.mainConf.doReplaceDash and theTwo == "--":
|
||||||
theCursor.movePosition(QTextCursor.Left, QTextCursor.KeepAnchor, 2)
|
theCursor.movePosition(QTextCursor.Left, QTextCursor.KeepAnchor, 2)
|
||||||
theCursor.insertText(nwUnicode.U_ENDASH)
|
theCursor.insertText(nwUnicode.U_ENDASH)
|
||||||
|
|||||||
Reference in New Issue
Block a user