1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Add [br] to bbcode parsing for rich_Text_label

This commit is contained in:
yahkr
2025-04-18 09:07:14 -04:00
parent 09ea7bc6a3
commit fc051c8b36

View File

@@ -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;