fix indentation when puking up a linked list
This commit is contained in:
		| @@ -310,10 +310,10 @@ function puke(item, indent, seen, hidekey) | ||||
|  end | ||||
|  | ||||
|  if item.is_linked_list then | ||||
|   local ret,n = "linked_list <",0 | ||||
|   local ret,n,xpfx = "linked_list <",0,pfx.." " | ||||
|   item:strip(function(x) | ||||
|    n += 1 | ||||
|    ret ..= pfx..tostr(n)..": "..puke(x, indent+1, seen, "next") | ||||
|    ret ..= xpfx..tostr(n)..": "..puke(x, indent+1, seen, "next") | ||||
|   end) | ||||
|   return ret..pfx..">" | ||||
|  end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user