# HG changeset patch # User Matthew Wild # Date 1259192818 0 # Node ID 458da843020fc34af5233ffd29390b522d755d35 # Parent 7ddd24d8260c8cfc27f43772cbb8f2163e530ad2# Parent 81b4e738e4d321b78274132f63a9aec7007e64eb Merge with 0.6 diff -r 7ddd24d8260c -r 458da843020f util/serialization.lua --- a/util/serialization.lua Wed Nov 25 19:59:16 2009 +0000 +++ b/util/serialization.lua Wed Nov 25 23:46:58 2009 +0000 @@ -35,7 +35,7 @@ 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));