Fixed luci.util.dumptable
authorSteven Barth <steven@midlink.org>
Thu, 28 Aug 2008 16:16:51 +0000 (16:16 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 28 Aug 2008 16:16:51 +0000 (16:16 +0000)
libs/core/luasrc/util.lua

index 14bd1e7..2ede71a 100644 (file)
@@ -190,7 +190,7 @@ function dumptable(t, i, seen)
        seen = seen or setmetatable({}, {__mode="k"})
        
        for k,v in pairs(t) do
-               perror(string.rep("\t", i) .. tostring(k), tostring(v))
+               perror(string.rep("\t", i) .. tostring(k) .. "\t" .. tostring(v))
                if type(v) == "table" then
                        if not seen[v] then
                                seen[v] = true