Fixed string dumping
This commit is contained in:
parent
6961ba97cc
commit
34881ad4f4
1 changed files with 3 additions and 1 deletions
|
|
@ -31,8 +31,10 @@ class DevState(PyState):
|
|||
x = self.values[n]
|
||||
if isinstance(x, dict):
|
||||
x = f"{x.get('type')}"
|
||||
else:
|
||||
x = repr(x)
|
||||
f.write("\"a_%s\" [label=\"%s\"];\n" % (
|
||||
n, str(x).replace('"', '\\"')))
|
||||
n, x.replace('"', '\\"')))
|
||||
else:
|
||||
f.write("\"a_%s\" [label=\"\"];\n" % n)
|
||||
for i, e in sorted(list(self.edges.items())):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue