elseif type(o) == "string" then
func(t, (("%q"):format(o):gsub("\\\n", "\\n")));
elseif type(o) == "table" then
- if next(o) then
+ if next(o) ~= nil then
func(t, "{\n");
for k,v in pairs(o) do
func(t, indent(ind));
else
_simplesave(v, ind+1, t, func);
end
- func(t, ",\n");
+ func(t, ";\n");
end
func(t, indent(ind-1));
func(t, "}");