List of values in table renders as HTML list
Co-authored-by: Aire-One <Aire-One@users.noreply.github.com>
This commit is contained in:
parent
5f5b1dcb2b
commit
ddb88ed945
|
@ -227,17 +227,11 @@ local function create_table(entries, columns, prefix)
|
|||
|
||||
for _, column in ipairs(columns) do
|
||||
if type(entry[column]) == "table" then
|
||||
line = line .. "<td>"
|
||||
local firstline = true
|
||||
line = line .. "<td><ul>"
|
||||
for _,v in pairs(entry[column]) do
|
||||
if not firstline then
|
||||
line = line .. "<br>"
|
||||
else
|
||||
firstline = false
|
||||
line = line .. "<li>" .. v .. "</li>"
|
||||
end
|
||||
line = line .. v
|
||||
end
|
||||
line = line .. "</td>"
|
||||
line = line .. "</ul></td>"
|
||||
else
|
||||
line = line.."<td>"..entry[column].."</td>"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue