Commit 3071a856 authored by ttrask's avatar ttrask

Modify ipsectools-details to handle \n.

git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@1722 ab2d0c66-481e-0410-8bed-d214d4d58bed
parent 77ae4bdb
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment