From 601062f040cdaeb61f097b40f657fc32f5c7eff4 Mon Sep 17 00:00:00 2001 From: Alexander Anokhin Date: Thu, 22 Nov 2018 18:55:44 +0300 Subject: [PATCH] The second expression (ch is space) is removed because the first one contains space 0x20 --- src/emitterutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emitterutils.cpp b/src/emitterutils.cpp index fffb775..e02931f 100644 --- a/src/emitterutils.cpp +++ b/src/emitterutils.cpp @@ -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 << "\"";