summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-10-03 18:41:05 +0000
committerTed Trask <ttrask01@yahoo.com>2015-10-04 03:13:18 +0000
commitb67827d6015d815790baed93e8c8880c98bdf127 (patch)
treeeed29b82beabc9f938ef2b17f61a91dfda3b6071
parent324e9e431f5f0a047357b5cc39586710b05bce34 (diff)
downloadacf-core-b67827d6015d815790baed93e8c8880c98bdf127.tar.bz2
acf-core-b67827d6015d815790baed93e8c8880c98bdf127.tar.xz
Display descr in htmlviewfunctions.displaycommandresults
(cherry picked from commit 828b88a6ce2a083484e7cf09ad122896f0f14c15)
-rw-r--r--lib/htmlviewfunctions.lua1
1 files changed, 1 insertions, 0 deletions
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('<div class="command-results"><h1>Command Result</h1>')
for i,result in ipairs(cmdresult) do
if type(result.value) == "string" and result.value ~= "" then io.write('<p>' .. string.gsub(html.html_escape(result.value), "\n", "<br/>") .. "</p>") end
+ if result.descr then io.write('<p class="descr">' .. string.gsub(html.html_escape(result.descr), "\n", "<br/>") .. '</p>') end
if result.errtxt then io.write('<p class="error">' .. string.gsub(html.html_escape(result:print_errtxt()), "\n", "<br/>") .. '</p>') end
end
io.write('</div><!-- end .command-results -->')