Skip to content

Commit 019474f

Browse files
authored
Merge pull request #56586 from dalexeev/rtl-bracket-escapes
2 parents a074cee + 884f1ac commit 019474f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scene/gui/rich_text_label.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -3066,6 +3066,12 @@ void RichTextLabel::append_text(const String &p_bbcode) {
30663066
push_strikethrough();
30673067
pos = brk_end + 1;
30683068
tag_stack.push_front(tag);
3069+
} else if (tag == "lb") {
3070+
add_text("[");
3071+
pos = brk_end + 1;
3072+
} else if (tag == "rb") {
3073+
add_text("]");
3074+
pos = brk_end + 1;
30693075
} else if (tag == "lrm") {
30703076
add_text(String::chr(0x200E));
30713077
pos = brk_end + 1;

0 commit comments

Comments
 (0)