mirror of https://github.com/YosysHQ/yosys.git
pass jny: fixed the backslash escape for strings
This commit is contained in:
parent
cae5ea8337
commit
2e792857e9
|
@ -55,8 +55,7 @@ struct JnyWriter
|
|||
for(; itr != str.end(); ++itr) {
|
||||
switch (*itr) {
|
||||
case '\\': {
|
||||
newstr += *itr++;
|
||||
newstr += *itr;
|
||||
newstr += "\\\\";
|
||||
break;
|
||||
} case '\n': {
|
||||
newstr += "\\n";
|
||||
|
|
Loading…
Reference in New Issue