@@ -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 (((unsigned char)*str->end == '\r') && str->end >= str->begin)
+ str->end--;
str->end++;
}
@@ -249,9 +249,9 @@ void Atlas::trim(Str *str) {
- /*while (isspace((unsigned char) *str->end) && str->end >= str->begin) {
+ while (((unsigned char)*str->end == '\r') && str->end >= str->begin) {
- }*/
+ }