mirror of https://github.com/YosysHQ/yosys.git
Fix preventing show crashing with newer graphviz
This commit is contained in:
parent
1eb1bc441b
commit
d88a5d26b7
|
@ -191,7 +191,12 @@ struct ShowWorker
|
||||||
|
|
||||||
std::string str;
|
std::string str;
|
||||||
for (char ch : id) {
|
for (char ch : id) {
|
||||||
if (ch == '\\' || ch == '"')
|
if (ch == '\\') {
|
||||||
|
// new graphviz have bug with escaping '\'
|
||||||
|
str += "╲";
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (ch == '"')
|
||||||
str += "\\";
|
str += "\\";
|
||||||
str += ch;
|
str += ch;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue