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-03 18:41:05 +0000
commit828b88a6ce2a083484e7cf09ad122896f0f14c15 (patch)
treeb3ec4fa003cb07851b88bededa7a2eaa4647fece
parenta6f16048944ab1fccdd4b7ca099cc401c90cd81e (diff)
downloadacf-core-828b88a6ce2a083484e7cf09ad122896f0f14c15.tar.bz2
acf-core-828b88a6ce2a083484e7cf09ad122896f0f14c15.tar.xz
Display descr in htmlviewfunctions.displaycommandresults
-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 -->')