summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-09-02 11:11:37 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-09-02 11:11:37 +0300
commit02113dff8317a7f1f8ce3f9b246ce0038ef6adcb (patch)
tree7d1f10551df28619c41e4418fe7eb3a9fcd0c7d4
parent61598c5c88d95b96811d386cb20d714c35f4c6d7 (diff)
downloadredot-engine-02113dff8317a7f1f8ce3f9b246ce0038ef6adcb.tar.gz
[RTL] Do not add final newline to the paragraph context.
-rw-r--r--scene/gui/rich_text_label.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 0395dffad9..bd4128384f 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -547,7 +547,7 @@ float RichTextLabel::_shape_line(ItemFrame *p_frame, int p_line, const Ref<Font>
if (font_size_it && font_size_it->font_size > 0) {
font_size = font_size_it->font_size;
}
- l.text_buf->add_string("\n", font, font_size);
+ l.text_buf->add_string(String::chr(0x200B), font, font_size);
txt += "\n";
l.char_count++;
remaining_characters--;