Show More
@@ -1863,6 +1863,10 b" class ConsoleWidget(MetaQObjectHasTraits('NewBase', (LoggingConfigurable, QtGui." | |||||
1863 | """ |
|
1863 | """ | |
1864 | lines = text.splitlines(True) |
|
1864 | lines = text.splitlines(True) | |
1865 | if lines: |
|
1865 | if lines: | |
|
1866 | if lines[-1].endswith('\n'): | |||
|
1867 | # If the text ends with a newline, add a blank line so a new | |||
|
1868 | # continuation prompt is produced. | |||
|
1869 | lines.append('') | |||
1866 | cursor.beginEditBlock() |
|
1870 | cursor.beginEditBlock() | |
1867 | cursor.insertText(lines[0]) |
|
1871 | cursor.insertText(lines[0]) | |
1868 | for line in lines[1:]: |
|
1872 | for line in lines[1:]: |
General Comments 0
You need to be logged in to leave comments.
Login now