summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipsectools-details-html.lsp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipsectools-details-html.lsp b/ipsectools-details-html.lsp
index c5cdb5c..18a7e79 100644
--- a/ipsectools-details-html.lsp
+++ b/ipsectools-details-html.lsp
@@ -28,7 +28,7 @@ else
local tags = {"Created","Source","Destination", "St", "Phase2details"}
for j,tag in pairs(tags) do
io.write("<TR><TD STYLE='font-weight:bold;width:120px;border:none;'>" ..
- html.html_escape(entry[tag].label) .. "</TD><TD STYLE='border:none;'>"..html.html_escape(entry[tag].value))
+ html.html_escape(entry[tag].label) .. "</TD><TD STYLE='border:none;'>"..string.gsub(html.html_escape(entry[tag].value), "\n", "<BR>"))
if (entry[tag].descr) and (#entry[tag].descr > 0) then io.write(" (".. html.html_escape(entry[tag].descr) .. ")") end
io.write("</TD></TR>")
end