From 890ae219949ca4a05e73f8f5b6c146ce10959f00 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 7 Mar 2014 22:16:36 +0000 Subject: Fix more issues in htmlviewfunctions where page_info nil exception --- lib/htmlviewfunctions.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/htmlviewfunctions.lua') 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("

") -- cgit v1.2.3