diff --git a/src/print_gron.cpp b/src/print_gron.cpp index e3a59ad..5599342 100644 --- a/src/print_gron.cpp +++ b/src/print_gron.cpp @@ -201,7 +201,8 @@ void recursive_print_gron(simdjson::ondemand::value element, growing_string &pat } *ptr++ = 'm'; } - while (s.size() > 0 && (s[s.size() - 1] == ' ' || s[s.size() - 1] == '\n')) + while (s.size() > 0 && (s[s.size() - 1] == ' ' || s[s.size() - 1] == '\n' || + s[s.size() - 1] == '\r' || s[s.size() - 1] == '\t')) { s.remove_suffix(1); }