mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Merge pull request #105524 from yahkr/bbcode_br
Add [br] to bbcode parsing for `rich_text_label`
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user