From 487fbcd76d11c5658719b3a3984653006a48b81f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 3 Feb 2016 20:27:00 +0000 Subject: Fix default display when default is false --- lib/htmlviewfunctions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua index e443317..033370b 100644 --- a/lib/htmlviewfunctions.lua +++ b/lib/htmlviewfunctions.lua @@ -48,7 +48,7 @@ end function mymodule.displayinfo(myitem) if myitem.descr then io.write('

' .. string.gsub(html.html_escape(myitem.descr), "\n", "
") .. '

') end - if myitem.default then io.write('

Default:' .. string.gsub(html.html_escape(getlabel(myitem, myitem.default)), "\n", "
") .. '

') end + if myitem.default == false or myitem.default then io.write('

Default:' .. string.gsub(html.html_escape(getlabel(myitem, myitem.default)), "\n", "
") .. '

') end if myitem.errtxt then io.write('

' .. string.gsub(html.html_escape(myitem.errtxt), "\n", "
") .. '

') end end -- cgit v1.2.3