Skip to content

Commit

Permalink
Don't trim whitespace on the last line of text.
Browse files Browse the repository at this point in the history
Fixes #414
  • Loading branch information
slouken committed Oct 19, 2024
1 parent 4924574 commit 9ef5523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDL_ttf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3475,7 +3475,7 @@ static bool GetWrappedLines(TTF_Font *font, const char *text, size_t length, int
if (line->text[line->length - 1] == '\r') {
--line->length;
}
} else {
} else if (i < (numLines - 1)) {
while (line->length > 0 &&
CharacterIsDelimiter(line->text[line->length - 1])) {
--line->length;
Expand Down

0 comments on commit 9ef5523

Please sign in to comment.