From e51d542c0648d3b0b7fb06b214edb3bda786cab7 Mon Sep 17 00:00:00 2001 From: Zach LeBar Date: Sat, 23 Feb 1980 04:31:51 +0000 Subject: Cleaning and refining the HTML. --- lib/htmlviewfunctions.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua index 4e8d4b8..22385b6 100644 --- a/lib/htmlviewfunctions.lua +++ b/lib/htmlviewfunctions.lua @@ -161,9 +161,8 @@ function displayformstart(myform, page_info) if not myform.action and page_info then myform.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action end - io.write('
\n') - if myform.descr then io.write('

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

\n") end - if myform.errtxt then io.write('

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

\n") end + if myform.descr then io.write('

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

\n") end + if myform.errtxt then io.write('

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

\n") end io.write('
') if type(option) == "table" then for i,v in ipairs(option) do io.write('\n') @@ -234,9 +232,7 @@ function displayformend(myform) else io.write('\n') end - io.write('
\n') - io.write('
') - io.write('
\n') + io.write('') end function displayform(myform, order, finishingorder, page_info, header_level) -- cgit v1.2.3