From 4ecd5d55f764944c9b92d942a5eae5719d633a50 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 10 Aug 2016 17:46:29 +0000 Subject: Remove trailing whitespace --- Makefile | 2 +- tcpproxy-listsmtpentries-html.lsp | 2 +- tcpproxy-listsmtpfiles-html.lsp | 2 +- tcpproxy-model.lua | 16 ++++++++-------- tcpproxy-smtpstatus-html.lsp | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 3472393..af59723 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/tcpproxy-listsmtpentries-html.lsp b/tcpproxy-listsmtpentries-html.lsp index 372dc0b..2d4c441 100644 --- a/tcpproxy-listsmtpentries-html.lsp +++ b/tcpproxy-listsmtpentries-html.lsp @@ -1,4 +1,4 @@ -<% local view, viewlibrary, page_info, session = ... +<% local view, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/tcpproxy-listsmtpfiles-html.lsp b/tcpproxy-listsmtpfiles-html.lsp index ac8de32..b4bd0cc 100644 --- a/tcpproxy-listsmtpfiles-html.lsp +++ b/tcpproxy-listsmtpfiles-html.lsp @@ -1,4 +1,4 @@ -<% local view, viewlibrary, page_info, session = ... +<% local view, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/tcpproxy-model.lua b/tcpproxy-model.lua index 6dc7537..8944754 100644 --- a/tcpproxy-model.lua +++ b/tcpproxy-model.lua @@ -200,11 +200,11 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS -function mymodule.get_startstop(self, clientdata) +function mymodule.get_startstop(self, clientdata) return modelfunctions.get_startstop(processname) end -function mymodule.startstop_service(self, startstop, action) +function mymodule.startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end @@ -242,10 +242,10 @@ function mymodule.listsmtpentries(self) table.insert(entries.value, entry) end end - + local reverseaddress = {} for i,int in ipairs(entries.value) do reverseaddress[int.ipaddr or int.interface] = i end - + config = config or parseconfigfile(fs.read_file(configfile) or "") local smtpconfig = getsmtpconfig(config) for i,int in ipairs(smtpconfig) do @@ -260,7 +260,7 @@ function mymodule.listsmtpentries(self) table.insert(entries.value, int) end end - + return entries end @@ -297,7 +297,7 @@ end function mymodule.updatesmtpentry(self, entry) local success, entry = validatesmtpentry(entry) - + if success then local options = parsesmtpcmd(getsmtpcmd(entry.value.ipaddr.value)) @@ -335,7 +335,7 @@ function mymodule.updatesmtpentry(self, entry) if options[""] ~= "" then exec[#exec + 1] = options[""] end - + setsmtpcmd(entry.value.ipaddr.value, table.concat(exec, " ")) else entry.errtxt = "Failed to set SMTP Proxy Entry" @@ -416,7 +416,7 @@ function mymodule.delsmtpfile(self, delfile) delfile.errtxt = "Failed to delete SMTP Proxy File" delfile.value.filename.errtxt = "Invalid filename" end - + return delfile end diff --git a/tcpproxy-smtpstatus-html.lsp b/tcpproxy-smtpstatus-html.lsp index e50a954..f8fd3ef 100644 --- a/tcpproxy-smtpstatus-html.lsp +++ b/tcpproxy-smtpstatus-html.lsp @@ -1,4 +1,4 @@ -<% local view, viewlibrary, page_info, session = ... +<% local view, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> -- cgit v1.2.3