Line 20: |
Line 20: |
| if not success then return "No data for ships: " .. shipClass end | | if not success then return "No data for ships: " .. shipClass end |
| | | |
− | local result = { string.format(template.header) } | + | local result = string.format(template.header) |
| | | |
| local suffix = {} | | local suffix = {} |
Line 41: |
Line 41: |
| name,success = name:gsub(".Kai", "/Kai") | | name,success = name:gsub(".Kai", "/Kai") |
| end | | end |
− | table.insert(result, string.format(template.item, name)) | + | result = result .. string.format(template.item, name) |
| end | | end |
| end | | end |
| | | |
| for k, v in pairs(notes) do | | for k, v in pairs(notes) do |
− | table.insert(result, string.format(template.item, v)) | + | result = result .. string.format(template.item, v) |
| end | | end |
| | | |
| for k, v in pairs(coloring) do | | for k, v in pairs(coloring) do |
− | table.insert(result, string.format(template.item, v)) | + | result = result .. string.format(template.item, v) |
| end | | end |
| | | |
− | table.insert(result, template.footer) | + | result = result .. template.footer |
− | return table.concat(result, "\n") | + | return result .. '\n' |
| end | | end |
| | | |