Draft: Draft_Text split lines by newline characters

This commit is contained in:
vocx-fc
2020-04-01 21:26:54 -06:00
committed by Yorik van Havre
parent 9f28844bf2
commit 9d9102bc7e

View File

@@ -1619,7 +1619,7 @@ class DraftToolBar:
"""this function sends the entered text to the active draft command
if enter has been pressed twice. Otherwise it blanks the line.
"""
self.sourceCmd.text = self.textValue.toPlainText().split()
self.sourceCmd.text = self.textValue.toPlainText().splitlines()
self.sourceCmd.createObject()
def displayPoint(self, point=None, last=None, plane=None, mask=None):