From 315940a5ec5bca79a0092b150f7abcf5872a2f94 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 10 Aug 2016 17:49:43 +0000 Subject: Remove trailing whitespace --- weblog-viewweblog-html.lsp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'weblog-viewweblog-html.lsp') diff --git a/weblog-viewweblog-html.lsp b/weblog-viewweblog-html.lsp index 050489e..d61ac70 100644 --- a/weblog-viewweblog-html.lsp +++ b/weblog-viewweblog-html.lsp @@ -22,7 +22,7 @@ function string_highlight(txtvalue, searchval, fcolour, bcolour) txtvalue = string_insert(txtvalue,"", sEnd) txtvalue = string_insert(txtvalue,"", sStart) end - end + end return txtvalue end @@ -176,7 +176,7 @@ end %> local mark = '' if watch.selected == "t" then mark=' class="selected"' end local time = {} - time.year, time.month, time.day, time.hour, time.min, time.sec = + time.year, time.month, time.day, time.hour, time.min, time.sec = string.match(watch.logdatetime, "(%d+)%-(%d+)-(%d+)%s+(%d+):(%d+):(%d+)") time = os.time(time) %> > @@ -192,7 +192,7 @@ end %> <%= html.html_escape(watch.bytes) %> <%= html.html_escape(watch.badyesno) %><% if watch.badyesno ~= "0" then %><% end %> <%= html.html_escape(watch.deniedyesno) %><% if watch.deniedyesno ~= "0" then %> <% end %> - <%= html.html_escape(watch.bypassyesno) %><% if watch.bypassyesno ~= "0" then %> <% end %> + <%= html.html_escape(watch.bypassyesno) %><% if watch.bypassyesno ~= "0" then %> <% end %> <%= html.html_escape(watch.score) %> title="<%= html.html_escape(watch.reason) %>"<% end %>> <% if (watch.shortreason and watch.shortreason ~= "") then %> @@ -202,8 +202,8 @@ end %> <% end %> <% highlight_uri=html.html_escape(watch.shorturi or watch.uri) - if watch.wordloc ~= nil then - if string.find(watch.wordloc, "|") then + if watch.wordloc ~= nil then + if string.find(watch.wordloc, "|") then badwords = format.string_to_table(watch.wordloc, "|") for key,wrd in ipairs(badwords) do highlight_uri = string_highlight(highlight_uri, wrd, "yellow", "red") @@ -211,7 +211,7 @@ end %> else highlight_uri = string_highlight(highlight_uri, watch.wordloc, "yellow", "red") end - end %> + end %> <%= highlight_uri %> <%= watch.wordloc %> -- cgit v1.2.3