Skip to content

Commit fc051c8

Browse files
committed
Add [br] to bbcode parsing for rich_Text_label
1 parent 09ea7bc commit fc051c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scene/gui/rich_text_label.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5412,6 +5412,9 @@ void RichTextLabel::append_text(const String &p_bbcode) {
54125412
push_language(lang);
54135413
pos = brk_end + 1;
54145414
tag_stack.push_front("lang");
5415+
} else if (tag == "br") {
5416+
add_text("\r");
5417+
pos = brk_end + 1;
54155418
} else if (tag == "p") {
54165419
push_paragraph(HORIZONTAL_ALIGNMENT_LEFT);
54175420
pos = brk_end + 1;

0 commit comments

Comments
 (0)