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 14bd1e79bfaf6ec1bdb94e7d14428147ed955e2d..2ede71a264502c1ad6572efdf8a6821853901adc 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