From 828b88a6ce2a083484e7cf09ad122896f0f14c15 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 3 Oct 2015 18:41:05 +0000 Subject: Display descr in htmlviewfunctions.displaycommandresults --- lib/htmlviewfunctions.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/htmlviewfunctions.lua') diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua index 16a3945..e9e2fe2 100644 --- a/lib/htmlviewfunctions.lua +++ b/lib/htmlviewfunctions.lua @@ -339,6 +339,7 @@ function mymodule.displaycommandresults(commands, session, preserveerrors) io.write('

Command Result

') for i,result in ipairs(cmdresult) do if type(result.value) == "string" and result.value ~= "" then io.write('

' .. string.gsub(html.html_escape(result.value), "\n", "
") .. "

") end + if result.descr then io.write('

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

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

' .. string.gsub(html.html_escape(result:print_errtxt()), "\n", "
") .. '

') end end io.write('
') -- cgit v1.2.3