mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
pass jny: fixed the backslash escape for strings
This commit is contained in:
committed by
N. Engelhardt
parent
cae5ea8337
commit
2e792857e9
+1
-2
@@ -55,8 +55,7 @@ struct JnyWriter
|
||||
for(; itr != str.end(); ++itr) {
|
||||
switch (*itr) {
|
||||
case '\\': {
|
||||
newstr += *itr++;
|
||||
newstr += *itr;
|
||||
newstr += "\\\\";
|
||||
break;
|
||||
} case '\n': {
|
||||
newstr += "\\n";
|
||||
|
||||
Reference in New Issue
Block a user