Fix additional point in past series

This commit is contained in:
emanuele-f 2019-09-20 18:46:12 +02:00
parent 907b260ece
commit d7632494dd
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ end
-- The other two parameters should not be set
function tprint(s, l, i)
l = (l) or 1000; i = i or "";-- default item limit, indent string
if (l<1) then print("ERROR: Item limit reached.\n"); return l-1 end;
if (l<1) then io.write("ERROR: Item limit reached.\n"); return l-1 end;
local ts = type(s);
if (ts ~= "table") then io.write(i..' '..ts..' '..tostring(s)..'\n'); return l-1 end
io.write(i..' '..ts..'\n');