mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-08 11:46:53 +08:00
[c][cpp] Ignore return carriage at end of atlas file lines.
This commit is contained in:
parent
6d3fc9b3a0
commit
08694b37b3
@ -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 (((unsigned char)*str->end == '\r') && 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 (((unsigned char)*str->end == '\r') && str->end >= str->begin) {
|
||||||
str->end--;
|
str->end--;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
str->end++;
|
str->end++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user