From 54ca1ac539322e966a7f68fe075de2779dc59320 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 11 Sep 2019 15:52:21 +0000 Subject: Fix HTML view for hidden tables --- lib/htmlviewfunctions.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua index 4cee340..b18e35c 100644 --- a/lib/htmlviewfunctions.lua +++ b/lib/htmlviewfunctions.lua @@ -140,7 +140,11 @@ function mymodule.displayitem(myitem, page_info, header_level, name, group) if myitem.class then class = ' class="'..html.html_escape(myitem.class)..'"' end - io.write(""..string.gsub(html.html_escape(tostring(myitem.value)), "\n", "
") .. "

\n") + local value = tostring(myitem.value) + if type(myitem.value) == "table" then + value = table.concat(myitem.value, "\n") + end + io.write(""..string.gsub(html.html_escape(value), "\n", "
") .. "

\n") mymodule.displayitemend(myitem, page_info, header_level) end end -- cgit v1.2.3