summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-11 16:17:16 +0100
committerGitHub <noreply@github.com>2022-01-11 16:17:16 +0100
commit019474f2b882ec26b77d4f0fb7d3aa1d72ff0fe0 (patch)
tree4471cd8830b84ea9de4d2ac02b0c940c35c139bf /scene
parenta074ceefcd74d903579c7b256a07e7e531141b07 (diff)
parent884f1acff89e4994a424aecf0a11da294e9c2070 (diff)
Merge pull request #56586 from dalexeev/rtl-bracket-escapes
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/rich_text_label.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 653838b63b..863555120d 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -3066,6 +3066,12 @@ void RichTextLabel::append_text(const String &p_bbcode) {
push_strikethrough();
pos = brk_end + 1;
tag_stack.push_front(tag);
+ } else if (tag == "lb") {
+ add_text("[");
+ pos = brk_end + 1;
+ } else if (tag == "rb") {
+ add_text("]");
+ pos = brk_end + 1;
} else if (tag == "lrm") {
add_text(String::chr(0x200E));
pos = brk_end + 1;