Fix nested trees deeper than 2 not being indented
This commit is contained in:
parent
b817b4be7b
commit
9d50868efa
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ tree = (tab, pref='') ->
|
|||
io.write last and "└─" or "├─"
|
||||
switch type element
|
||||
when "table"
|
||||
tree element, last and ' ' or '│ '
|
||||
tree element, pref .. (last and ' ' or '│ ')
|
||||
else
|
||||
print tostring element
|
||||
|
||||
|
|
Loading…
Reference in a new issue