From 3071a856df92a5d564563bd3740ccf5a8deb31ee Mon Sep 17 00:00:00 2001 From: ttrask Date: Tue, 3 Mar 2009 14:26:11 +0000 Subject: Modify ipsectools-details to handle \n. git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@1722 ab2d0c66-481e-0410-8bed-d214d4d58bed --- ipsectools-details-html.lsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("" .. - html.html_escape(entry[tag].label) .. ""..html.html_escape(entry[tag].value)) + html.html_escape(entry[tag].label) .. ""..string.gsub(html.html_escape(entry[tag].value), "\n", "
")) if (entry[tag].descr) and (#entry[tag].descr > 0) then io.write(" (".. html.html_escape(entry[tag].descr) .. ")") end io.write("") end -- cgit v1.2.3