pass jny: fixed the backslash escape for strings

This commit is contained in:
Aki Van Ness 2022-03-10 11:03:51 -05:00 committed by N. Engelhardt
parent cae5ea8337
commit 2e792857e9
1 changed files with 1 additions and 2 deletions

View File

@ -55,8 +55,7 @@ struct JnyWriter
for(; itr != str.end(); ++itr) { for(; itr != str.end(); ++itr) {
switch (*itr) { switch (*itr) {
case '\\': { case '\\': {
newstr += *itr++; newstr += "\\\\";
newstr += *itr;
break; break;
} case '\n': { } case '\n': {
newstr += "\\n"; newstr += "\\n";