projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eb1bc4
)
Fix preventing show crashing with newer graphviz
author
Miodrag Milanovic
<mmicko@gmail.com>
Fri, 3 Jun 2022 06:38:16 +0000
(08:38 +0200)
committer
Miodrag Milanovic
<mmicko@gmail.com>
Fri, 3 Jun 2022 06:38:16 +0000
(08:38 +0200)
passes/cmds/show.cc
patch
|
blob
|
history
diff --git
a/passes/cmds/show.cc
b/passes/cmds/show.cc
index 35aa410e489bd6617e413aab00363a278317c974..43deba47b9606c70fbb55fbc775ecf19a55e3a3b 100644
(file)
--- a/
passes/cmds/show.cc
+++ b/
passes/cmds/show.cc
@@
-191,7
+191,12
@@
struct ShowWorker
std::string str;
for (char ch : id) {
- if (ch == '\\' || ch == '"')
+ if (ch == '\\') {
+ // new graphviz have bug with escaping '\'
+ str += "╲";
+ continue;
+ }
+ if (ch == '"')
str += "\\";
str += ch;
}