Merge pull request #58887 from cesarizu/bbcode_align_left

This commit is contained in:
Rémi Verschelde 2022-03-08 12:52:54 +01:00 committed by GitHub
commit 761398556e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3250,6 +3250,10 @@ void RichTextLabel::append_text(const String &p_bbcode) {
push_paragraph(HORIZONTAL_ALIGNMENT_FILL);
pos = brk_end + 1;
tag_stack.push_front(tag);
} else if (tag == "left") {
push_paragraph(HORIZONTAL_ALIGNMENT_LEFT);
pos = brk_end + 1;
tag_stack.push_front(tag);
} else if (tag == "right") {
push_paragraph(HORIZONTAL_ALIGNMENT_RIGHT);
pos = brk_end + 1;