[c][cpp] Closes #1213, don't trim end of atlas file line.

This commit is contained in:
badlogic 2018-11-27 12:24:15 +01:00
parent b8a8df486d
commit 7175cf98e7
2 changed files with 4 additions and 4 deletions

View File

@ -70,8 +70,8 @@ static void trim(Str* str) {
(str->begin)++;
if (str->begin == str->end) return;
str->end--;
while (isspace((unsigned char)*str->end) && str->end >= str->begin)
str->end--;
/*while (isspace((unsigned char)*str->end) && str->end >= str->begin)
str->end--;*/
str->end++;
}

View File

@ -249,9 +249,9 @@ void Atlas::trim(Str *str) {
str->end--;
while (isspace((unsigned char) *str->end) && str->end >= str->begin) {
/*while (isspace((unsigned char) *str->end) && str->end >= str->begin) {
str->end--;
}
}*/
str->end++;
}