Let object tokens repr themselves in the diagram.
This commit is contained in:
parent
ed952ffdda
commit
0fd09984bc
1 changed files with 5 additions and 2 deletions
|
@ -225,8 +225,11 @@ class ExpressionTree:
|
||||||
if self.token is None:
|
if self.token is None:
|
||||||
return '""'
|
return '""'
|
||||||
t = self.token
|
t = self.token
|
||||||
if ' ' in t:
|
if isinstance(t, str):
|
||||||
t = f'"{t}"'
|
if ' ' in t:
|
||||||
|
t = f'"{t}"'
|
||||||
|
else:
|
||||||
|
t = repr(t)
|
||||||
|
|
||||||
output = t
|
output = t
|
||||||
indent = 1
|
indent = 1
|
||||||
|
|
Loading…
Reference in a new issue