peterv
1
Hi,
I use a TextEditor for log messages.
I insert the text like this:
String str;
str << "text\n";
textEditor->insertTextAtCaret(str)
But the \n is not recognized and I dont have a new line after inserting the String.
The String stuff changed. What do I have to use to get a new line?
Peter
Look at TextEditor::setMultiline
peterv
3
It is already set to multiline.
The point is that the \n is not recognized. This worked a few commits ago.
UPDATE:
I have checked it with the commit before String refactoring and the \n works.
jules
4
Whoops! Sorry, looks like I missed out a bracket in there! Thanks for tracking that down and letting me know, I’ll upload a fix in a few minutes…