The second expression (ch is space) is removed because the first one contains space 0x20

This commit is contained in:
Alexander Anokhin 2018-11-22 18:55:44 +03:00
parent 49d8254de8
commit 601062f040

View File

@ -382,7 +382,7 @@ bool WriteChar(ostream_wrapper& out, char ch) {
out << "\"\\b\"";
} else if (ch == '\\') {
out << "\"\\\\\"";
} else if ((0x20 <= ch && ch <= 0x7e) || ch == ' ') {
} else if (0x20 <= ch && ch <= 0x7e) {
out << "\"" << ch << "\"";
} else {
out << "\"";