diff options
author | Peter Melnichenko <mpeterval@gmail.com> | 2016-05-30 22:15:14 +0300 |
---|---|---|
committer | Peter Melnichenko <mpeterval@gmail.com> | 2016-05-30 22:15:14 +0300 |
commit | 3d21d6c12585109ef041a3389f8da1c05347aa09 (patch) | |
tree | 7b60b109f7b633bda4a49f6528257388d848d643 | |
parent | ab67c73c8dc22cb5f809c53123331fd3cbabbd32 (diff) | |
download | luarocks-3d21d6c12585109ef041a3389f8da1c05347aa09.tar.gz luarocks-3d21d6c12585109ef041a3389f8da1c05347aa09.tar.bz2 luarocks-3d21d6c12585109ef041a3389f8da1c05347aa09.zip |
luarocks.persist: put pairs with number values on one line
Instead of pairs with number keys. Keeps parsed version representation
compact but puts items in regular arrays each on its own line.
-rw-r--r-- | src/luarocks/persist.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/persist.lua b/src/luarocks/persist.lua index 354b17c3..9407b2a4 100644 --- a/src/luarocks/persist.lua +++ b/src/luarocks/persist.lua | |||
@@ -147,7 +147,7 @@ write_table = function(out, tbl, level, field_order) | |||
147 | end | 147 | end |
148 | 148 | ||
149 | write_value(out, v, level, sub_order) | 149 | write_value(out, v, level, sub_order) |
150 | if type(k) == "number" then | 150 | if type(v) == "number" then |
151 | sep = ", " | 151 | sep = ", " |
152 | indent = false | 152 | indent = false |
153 | else | 153 | else |