We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6e933 commit 460b007Copy full SHA for 460b007
python/console/console_output.py
@@ -137,7 +137,13 @@ def insertInitText(self):
137
"Python {0} on {1}\n"
138
"## Type help(iface) for more info and list of methods.\n").format(sys.version,
139
socket.gethostname())
140
- initText = self.setText(txtInit)
+ ## some translation string for the console header ends without '\n'
141
+ ## and the first command in console will be appended at the header text.
142
+ ## The following code add a '\n' at the end of the string if not present.
143
+ if txtInit.endswith('\n'):
144
+ initText = self.setText(txtInit)
145
+ else:
146
+ initText = self.setText(txtInit + '\n')
147
148
def refreshLexerProperties(self):
149
self.setLexers()
0 commit comments