瀏覽代碼

Fix messages with embedded newlines not being properly presented

Ricardo Subtil 4 年之前
父節點
當前提交
a08dbf3888
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/editor_log.cpp

+ 1 - 1
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);