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:
|
||||
return '""'
|
||||
t = self.token
|
||||
if ' ' in t:
|
||||
t = f'"{t}"'
|
||||
if isinstance(t, str):
|
||||
if ' ' in t:
|
||||
t = f'"{t}"'
|
||||
else:
|
||||
t = repr(t)
|
||||
|
||||
output = t
|
||||
indent = 1
|
||||
|
|
Loading…
Reference in a new issue