mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 18:26:12 +08:00
[c][cpp] Closes #1213, don't trim end of atlas file line.
This commit is contained in:
parent
b8a8df486d
commit
7175cf98e7
@ -70,8 +70,8 @@ static void trim(Str* str) {
|
|||||||
(str->begin)++;
|
(str->begin)++;
|
||||||
if (str->begin == str->end) return;
|
if (str->begin == str->end) return;
|
||||||
str->end--;
|
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--;*/
|
||||||
str->end++;
|
str->end++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -249,9 +249,9 @@ void Atlas::trim(Str *str) {
|
|||||||
|
|
||||||
str->end--;
|
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--;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
str->end++;
|
str->end++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user