diff options
author | ttrask <ttrask@ab2d0c66-481e-0410-8bed-d214d4d58bed> | 2009-03-03 14:26:11 +0000 |
---|---|---|
committer | ttrask <ttrask@ab2d0c66-481e-0410-8bed-d214d4d58bed> | 2009-03-03 14:26:11 +0000 |
commit | 3071a856df92a5d564563bd3740ccf5a8deb31ee (patch) | |
tree | 70f2542623654355c11df00f60bf68d1d3a74d62 | |
parent | 77ae4bdb5f182bcbcd6f641e59d59702d0a0dbdc (diff) | |
download | acf-ipsec-tools-3071a856df92a5d564563bd3740ccf5a8deb31ee.tar.bz2 acf-ipsec-tools-3071a856df92a5d564563bd3740ccf5a8deb31ee.tar.xz |
Modify ipsectools-details to handle \n.
git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@1722 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | ipsectools-details-html.lsp | 2 |
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 |