try to fix up formatting in README

This commit is contained in:
Geoff Leyland 2015-05-08 08:20:20 +12:00
parent d20cd42d61
commit dc6324a23a

View File

@ -38,14 +38,14 @@ controlling how the file is read:
And columns is:
+ `{ word = true }` then the only field in the file would be
+ `{ word = true }` then the only field in the file would be
`{ word = "ONE" }`
+ `{ first = { name = "word"} }` then it would be { first = "ONE" }
+ `{ word = { transform = string.lower }}` would give { word = "one" }
+
+ `{ first = { name = "word"} }` then it would be { first = "ONE" }
+ `{ word = { transform = string.lower }}` would give { word = "one" }
+
{ word = true
number = { transform = function(x) return tonumber(x) / 10 end }}
would give `{ word = "ONE", number = 1 }`
would give `{ word = "ONE", number = 1 }`
A column can have more than one name:
`{ first = { names = {"word", "worm"}}}` to help cope with badly specified