summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Subtil <ricasubtil@gmail.com>2021-08-29 10:35:13 +0100
committerRicardo Subtil <ricasubtil@gmail.com>2021-08-29 10:35:13 +0100
commita08dbf3888dfac89ecb3f90e11d03a39f8cedf2b (patch)
treea2a9ce580a57c394c1eab96eb54b707964ede9cd
parent4d08a737fb868b4c2f47946aea7c9ec4ee97894d (diff)
Fix messages with embedded newlines not being properly presented
-rw-r--r--editor/editor_log.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp
index 296a33d917..f91cb7f607 100644
--- a/editor/editor_log.cpp
+++ b/editor/editor_log.cpp
@@ -195,7 +195,7 @@ void EditorLog::add_message(const String &p_msg, MessageType p_type) {
// get grouped together and sent to the editor log as one message. This can mess with the
// search functionality (see the comments on the PR above for more details). This behaviour
// also matches that of other IDE's.
- Vector<String> lines = p_msg.split("\n", false);
+ Vector<String> lines = p_msg.split("\n", true);
for (int i = 0; i < lines.size(); i++) {
_process_message(lines[i], p_type);