projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util.signal: Update version in header, and author's email
[prosody.git]
/
util
/
serialization.lua
diff --git
a/util/serialization.lua
b/util/serialization.lua
index 2a1fad029f7ba53122076b262965958d10f6ece6..7071d3f75e03f4af116919ff53f29fbf9b1578f6 100644
(file)
--- a/
util/serialization.lua
+++ b/
util/serialization.lua
@@
-35,7
+35,7
@@
local function _simplesave(o, ind, t, func)
elseif type(o) == "string" then
func(t, (("%q"):format(o):gsub("\\\n", "\\n")));
elseif type(o) == "table" then
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));
func(t, "{\n");
for k,v in pairs(o) do
func(t, indent(ind));
@@
-47,7
+47,7
@@
local function _simplesave(o, ind, t, func)
else
_simplesave(v, ind+1, t, func);
end
else
_simplesave(v, ind+1, t, func);
end
- func(t, "
,
\n");
+ func(t, "
;
\n");
end
func(t, indent(ind-1));
func(t, "}");
end
func(t, indent(ind-1));
func(t, "}");