diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/sample.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/data/sample.lua b/data/sample.lua index dd90af29d..6c09442b5 100644 --- a/data/sample.lua +++ b/data/sample.lua @@ -245,10 +245,9 @@ end function DefinitionList(items) local buffer = {} for _,item in pairs(items) do - for k, v in pairs(item) do - table.insert(buffer,"<dt>" .. k .. "</dt>\n<dd>" .. - table.concat(v,"</dd>\n<dd>") .. "</dd>") - end + local k, v = next(item) + table.insert(buffer, "<dt>" .. k .. "</dt>\n<dd>" .. + table.concat(v, "</dd>\n<dd>") .. "</dd>") end return "<dl>\n" .. table.concat(buffer, "\n") .. "\n</dl>" end |