From fc051c8b369f83fb911f4f8ae9b27be16693c891 Mon Sep 17 00:00:00 2001 From: yahkr <62478788+yahkr@users.noreply.github.com> Date: Fri, 18 Apr 2025 09:07:14 -0400 Subject: [PATCH] Add [br] to bbcode parsing for rich_Text_label --- scene/gui/rich_text_label.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index a195435d827..3bb510ef318 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -5412,6 +5412,9 @@ void RichTextLabel::append_text(const String &p_bbcode) { push_language(lang); pos = brk_end + 1; tag_stack.push_front("lang"); + } else if (tag == "br") { + add_text("\r"); + pos = brk_end + 1; } else if (tag == "p") { push_paragraph(HORIZONTAL_ALIGNMENT_LEFT); pos = brk_end + 1;