Merge pull request #120116 from bruvzg/rtl_tl

[RTL] Do not add zero-width space to last line without content.
This commit is contained in:
Thaddeus Crews
2026-06-12 13:38:51 -05:00
+1 -1
View File
@@ -715,7 +715,7 @@ float RichTextLabel::_shape_line(ItemFrame *p_frame, int p_line, const Ref<Font>
String txt;
String txt_sub;
Item *it_to = (p_line + 1 < (int)p_frame->lines.size()) ? p_frame->lines[p_line + 1].from : nullptr;
Item *it_prev = l.from ? l.from : current;
Item *it_prev = l.from;
int remaining_characters = visible_characters - l.char_offset;
for (Item *it = l.from; it && it != it_to; it = _get_next_item(it)) {
it_prev = it;