From 9edd4f964597835e18aac743ae249fcfdc513842 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 10 Aug 2016 15:42:58 +0000 Subject: Remove trailing whitespace --- Makefile | 2 +- ipsectools-details-html.lsp | 4 ++-- ipsectools-expert-html.lsp | 2 +- ipsectools-model.lua | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 2c66cba..a7b8e80 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ APP_DIST=\ EXTRA_DIST=README Makefile config.mk -DISTFILES=$(APP_DIST) $(EXTRA_DIST) +DISTFILES=$(APP_DIST) $(EXTRA_DIST) TAR=tar diff --git a/ipsectools-details-html.lsp b/ipsectools-details-html.lsp index 0c3d2ff..84d900a 100644 --- a/ipsectools-details-html.lsp +++ b/ipsectools-details-html.lsp @@ -1,4 +1,4 @@ -<% local data, viewlibrary, page_info, session = ... +<% local data, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> @@ -17,7 +17,7 @@ else io.write("\n") local tags = {"Created","Source","Destination", "St", "Phase2details"} for j,tag in pairs(tags) do - io.write("") diff --git a/ipsectools-expert-html.lsp b/ipsectools-expert-html.lsp index 08b08c1..0fc126c 100644 --- a/ipsectools-expert-html.lsp +++ b/ipsectools-expert-html.lsp @@ -3,7 +3,7 @@ <% htmlviewfunctions.displaycommandresults({"editracoon", "editipsec"}, session, true) %> -<% +<% viewlibrary.dispatch_component("status") viewlibrary.dispatch_component("editracoon") viewlibrary.dispatch_component("editipsec") diff --git a/ipsectools-model.lua b/ipsectools-model.lua index cab37ec..319cd73 100644 --- a/ipsectools-model.lua +++ b/ipsectools-model.lua @@ -39,7 +39,7 @@ local function racoonctl_table() local value = modelfunctions.run_executable({"ip", "xfrm", "state"}) -- Get rid of all lines that don't start with "src" local phase2details = string.gsub(value, "\n[^s][^\n]*", "") - + value = modelfunctions.run_executable({"racoonctl", "-lll", "show-sa", "isakmp"}) for i,line in pairs(format.string_to_table(value,"\n")) do if not ((string.find(line,"^Source")) or (#line == 0)) then @@ -113,7 +113,7 @@ end function mymodule.get_startstop(self, clientdata) return modelfunctions.get_startstop(processname) end - + function mymodule.startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end -- cgit v1.2.3
" .. + io.write("
" .. 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("