mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +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)++;
|
||||
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++;
|
||||
}
|
||||
|
||||
|
||||
@ -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++;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user