diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2016-05-30 16:36:23 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2016-05-30 16:36:23 -0300 |
commit | b95256c43e49721e7e391bd199fe4ad4b8cc3039 (patch) | |
tree | 7b60b109f7b633bda4a49f6528257388d848d643 | |
parent | ab67c73c8dc22cb5f809c53123331fd3cbabbd32 (diff) | |
parent | 3d21d6c12585109ef041a3389f8da1c05347aa09 (diff) | |
download | luarocks-b95256c43e49721e7e391bd199fe4ad4b8cc3039.tar.gz luarocks-b95256c43e49721e7e391bd199fe4ad4b8cc3039.tar.bz2 luarocks-b95256c43e49721e7e391bd199fe4ad4b8cc3039.zip |
Merge pull request #558 from mpeterv/persist-arrays-with-newlines
Don't put array items on the same line when persisting
-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 |