From a0c9b5cb07e4b691874e858527e36cb8c83c56d0 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 4 Aug 2016 15:55:56 +0000 Subject: Remove trailing whitespace --- README | 2 +- acf-hooks.lua | 16 +++---- acf.conf | 2 +- app/README | 2 +- app/acf-util/password-listlockevents-html.lsp | 8 ++-- app/acf-util/password-model.lua | 14 +++--- app/acf-util/roles-model.lua | 6 +-- app/acf-util/roles-read-html.lsp | 2 +- app/acf_cli-controller.lua | 2 +- app/acf_www-controller.lua | 46 +++++++++--------- app/dispatcherror-html.lsp | 2 +- app/exception-html.lsp | 2 +- app/status-html.lsp | 2 +- app/template-html.lsp | 14 +++--- bin/acf-cli | 2 +- lib/README | 4 +- lib/authenticator-plaintext.lua | 6 +-- lib/authenticator.lua | 14 +++--- lib/htmlviewfunctions.lua | 6 +-- lib/menubuilder.lua | 10 ++-- lib/modelfunctions.lua | 12 ++--- lib/roles.lua | 10 ++-- lib/session.lua | 22 ++++----- lua/mvc.lua | 68 +++++++++++++-------------- www/cgi-bin/acf | 4 +- 25 files changed, 139 insertions(+), 139 deletions(-) diff --git a/README b/README index f7eccd7..bcd5f7f 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -Alpine Configuration Framework +Alpine Configuration Framework To install the package run: diff --git a/acf-hooks.lua b/acf-hooks.lua index b301c5d..634cbf8 100644 --- a/acf-hooks.lua +++ b/acf-hooks.lua @@ -2,14 +2,14 @@ -- This file is loaded into self.conf.app_hooks using loadfile; -- it must be correct lua source code. -- The current format for this file is a table for each controller, --- and then values (or tables) under the controller. --- +-- and then values (or tables) under the controller. +-- -- The purpose of this file is to add user-specified hooks into the --- acf code. --- +-- acf code. +-- -- Currently the only use for this is a per-controller audit function -- (this overrides the acf.conf audit_precommit / postcommit globals) --- +-- -- audit_precommit | audit_postcommit can be strings (like in acf.conf) -- or functions. For functions, three variables are passed: -- self, CONFFILE, and TEMPFILE @@ -18,7 +18,7 @@ format = require("acf.format") local precommit=function(self, conf, temp) local logfile = "/var/log/acf-" .. self.conf.controller .. ".log" - fs.write_line_file (logfile, "#---- BEGIN TRANSACTION - " .. + fs.write_line_file (logfile, "#---- BEGIN TRANSACTION - " .. os.date() .. "\n" .. self.sessiondata.userinfo.userid .. " modifed " .. conf .. " as follows:") os.execute ("diff -u " .. format.escapespecialcharacters(conf) .. " " .. format.escapespecialcharacters(temp) .. " >>" .. format.escapespecialcharacters(logfile)) @@ -28,7 +28,7 @@ local precommit=function(self, conf, temp) interfaces = { - -- note that we must define the audit command as a + -- note that we must define the audit command as a -- new function to wrap the local func: audit_precommit=function(self,conf,temp) precommit(self, conf, temp) @@ -38,6 +38,6 @@ interfaces = { } -- but after defining the audit_* commands as direct functions, --- assining other controllers to be the same is fine... +-- assining other controllers to be the same is fine... tinydns=interfaces diff --git a/acf.conf b/acf.conf index 102186f..2872eed 100644 --- a/acf.conf +++ b/acf.conf @@ -2,7 +2,7 @@ # Directories where the application resides # appdir, libdir, and skindir may be comma-separated lists -# paths are checked from left to right +# paths are checked from left to right # for .lua and .lsp files - the first found file will be used # for .roles and .menu files - all files will be combined appdir=/usr/share/acf/app/ diff --git a/app/README b/app/README index 83e69af..9c7169c 100644 --- a/app/README +++ b/app/README @@ -16,7 +16,7 @@ Create a Makefile that describes the the following: * what files should be installed on the running system - * what additional files should be included in the distribution package + * what additional files should be included in the distribution package (tar.gz source package). The Makefile and acf-pkg.mk wil automatically be added so only extra files like README and ChangeLog needs to be specified here. diff --git a/app/acf-util/password-listlockevents-html.lsp b/app/acf-util/password-listlockevents-html.lsp index bb81846..aff2aba 100644 --- a/app/acf-util/password-listlockevents-html.lsp +++ b/app/acf-util/password-listlockevents-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") %> @@ -8,7 +8,7 @@ html = require("acf.html") document.write(' - + - + - +