pass jny: fixed the backslash escape for strings

This commit is contained in:
Aki Van Ness
2022-04-08 08:05:15 +02:00
committed by N. Engelhardt
parent cae5ea8337
commit 2e792857e9
+1 -2
View File
@@ -55,8 +55,7 @@ struct JnyWriter
for(; itr != str.end(); ++itr) {
switch (*itr) {
case '\\': {
newstr += *itr++;
newstr += *itr;
newstr += "\\\\";
break;
} case '\n': {
newstr += "\\n";