Skip to content

Commit d3ee6af

Browse files
committed
Merge pull request #105524 from yahkr/bbcode_br
Add [br] to bbcode parsing for `rich_text_label`
2 parents 7e7c524 + fc051c8 commit d3ee6af

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)