Commit 9edd4f96 authored by Ted Trask's avatar Ted Trask

Remove trailing whitespace

parent dbdc3e5e
......@@ -8,7 +8,7 @@ APP_DIST=\
EXTRA_DIST=README Makefile config.mk
DISTFILES=$(APP_DIST) $(EXTRA_DIST)
DISTFILES=$(APP_DIST) $(EXTRA_DIST)
TAR=tar
......
<% 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("<table>\n")
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;'>" ..
io.write("<tr><td style='font-weight:bold;width:120px;border:none;'>" ..
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>")
......
......@@ -3,7 +3,7 @@
<% htmlviewfunctions.displaycommandresults({"editracoon", "editipsec"}, session, true) %>
<%
<%
viewlibrary.dispatch_component("status")
viewlibrary.dispatch_component("editracoon")
viewlibrary.dispatch_component("editipsec")
......
......@@ -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
......
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