1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #111648 from kitbdev/fix-indented-line-wrap-nobreaks

Fix indented line wrap with no spaces
This commit is contained in:
Thaddeus Crews
2025-10-21 10:26:58 -05:00

View File

@@ -969,7 +969,7 @@ PackedInt32Array TextServer::shaped_text_get_line_breaks_adv(const RID &p_shaped
last_safe_break = i;
word_count++;
}
} else {
} else if (i >= indent_end) {
last_safe_break = i;
word_count++;
}
@@ -1153,7 +1153,7 @@ PackedInt32Array TextServer::shaped_text_get_line_breaks(const RID &p_shaped, do
last_safe_break = i;
word_count++;
}
} else {
} else if (i >= indent_end) {
last_safe_break = i;
word_count++;
}