summaryrefslogtreecommitdiffstats
path: root/lib/htmlviewfunctions.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/htmlviewfunctions.lua')
-rw-r--r--lib/htmlviewfunctions.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua
index 05fd97f..8fc8a3a 100644
--- a/lib/htmlviewfunctions.lua
+++ b/lib/htmlviewfunctions.lua
@@ -95,6 +95,7 @@ end
function mymodule.displayformitem(myitem, name, viewtype, header_level, group)
if not myitem then return end
if name then myitem.name = name end
+ header_level = header_level or 1
if group and group ~= "" then myitem.name = group.."."..myitem.name end
if myitem.type ~= "hidden" and myitem.type ~= "group" and 0 <= header_level then
io.write("<div class='item")
@@ -255,6 +256,7 @@ end
function mymodule.displayformend(myform, header_level)
if not myform then return end
+ header_level = header_level or 1
local option = myform.submit or myform.option
if 0 <= header_level then
io.write("<div class='item'><p class='left'>")