Skip to content

Commit 02113df

Browse files
committed
[RTL] Do not add final newline to the paragraph context.
1 parent 61598c5 commit 02113df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/rich_text_label.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ float RichTextLabel::_shape_line(ItemFrame *p_frame, int p_line, const Ref<Font>
547547
if (font_size_it && font_size_it->font_size > 0) {
548548
font_size = font_size_it->font_size;
549549
}
550-
l.text_buf->add_string("\n", font, font_size);
550+
l.text_buf->add_string(String::chr(0x200B), font, font_size);
551551
txt += "\n";
552552
l.char_count++;
553553
remaining_characters--;

0 commit comments

Comments
 (0)