Big table.tostring() overhaul: removed some dead cruft (new_indent...) and added...
commite7c484655a563796a20c18d7e4b1ec88f46427b2
authorfabien <fabien@fabien-ubuntu.(none)>
Tue, 30 Sep 2008 15:29:18 +0000 (30 17:29 +0200)
committerfabien <fabien@fabien-ubuntu.(none)>
Tue, 30 Sep 2008 15:29:18 +0000 (30 17:29 +0200)
tree962e780b0636069fa575e935cdba964155b556a6
parent423ce9b0451cbe0d143e8a157853f73281bdf583
Big table.tostring() overhaul: removed some dead cruft (new_indent...) and added some features: (1) option "notag" gets "tag" field to be treated as a regular field, i.e. tables are printed the Lua way, rather than the "`Sometag{ ... }" Metalua way; (2) option "indentN" with N a number will indent tables by a fixed amount of N spaces, instead of aligning siblings together; if N is omitted, it defaults to 3.
src/lib/table2.lua