Skip to content

Commit 8e17333

Browse files
committed
Add bbcode support for printing output
1 parent 91b97da commit 8e17333

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editor/editor_log.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ void EditorLog::_add_log_line(LogMessage &p_message, bool p_replace_previous) {
280280
log->pop();
281281
}
282282

283-
log->add_text(p_message.text);
283+
log->append_text(p_message.text);
284284

285285
// Need to use pop() to exit out of the RichTextLabels current "push" stack.
286286
// We only "push" in the above switch when message type != STD, so only pop when that is the case.
@@ -342,6 +342,7 @@ EditorLog::EditorLog() {
342342
log->set_focus_mode(FOCUS_CLICK);
343343
log->set_v_size_flags(SIZE_EXPAND_FILL);
344344
log->set_h_size_flags(SIZE_EXPAND_FILL);
345+
log->set_use_bbcode(true);
345346
vb_left->add_child(log);
346347

347348
// Search box

0 commit comments

Comments
 (0)