Mercurial > prosody-hg
comparison util/serialization.lua @ 2149:603134825bdb
util.serialization: Replaced commas with semi-colons between table fields.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Mon, 23 Nov 2009 19:50:04 +0500 |
| parents | 5590c13552ab |
| children | 81b4e738e4d3 |
comparison
equal
deleted
inserted
replaced
| 2148:5590c13552ab | 2149:603134825bdb |
|---|---|
| 45 if ind == 0 then | 45 if ind == 0 then |
| 46 _simplesave(v, 0, t, func); | 46 _simplesave(v, 0, t, func); |
| 47 else | 47 else |
| 48 _simplesave(v, ind+1, t, func); | 48 _simplesave(v, ind+1, t, func); |
| 49 end | 49 end |
| 50 func(t, ",\n"); | 50 func(t, ";\n"); |
| 51 end | 51 end |
| 52 func(t, indent(ind-1)); | 52 func(t, indent(ind-1)); |
| 53 func(t, "}"); | 53 func(t, "}"); |
| 54 else | 54 else |
| 55 func(t, "{}"); | 55 func(t, "{}"); |
