From 12d3537a7cb975b0a75698f1e1f90e66313a6893 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 10 Aug 2016 16:08:22 +0000 Subject: Remove trailing whitespace --- config/templates/polycom-template.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'config/templates/polycom-template.lua') diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua index 3869e3e..6a874ff 100644 --- a/config/templates/polycom-template.lua +++ b/config/templates/polycom-template.lua @@ -69,7 +69,7 @@ device.set="1" <% local values = ... %> -<% +<% local function xml_attr (t, v) if v ~= nil then -- Check for -0, which is invalid for Polycom but fine for Lua @@ -77,7 +77,7 @@ local function xml_attr (t, v) -- v could be a string, boolean, or a number io.write(table.concat(t, '.') .. '="' .. tostring(v) .. '"\n') end -end +end %> <% @@ -141,7 +141,7 @@ if tz then local function dstrule ( pos ) local dstprefix = 'tcpIpApp.sntp.daylightSavings' local t = tz.dst[pos] - + -- Handle explicit hour for DST change -- (Polycom doesn't implement explicit min or sec) -- (Polycom DST implementation assumes DST change is 1 hour) @@ -164,7 +164,7 @@ if tz then -- POSIX weekday is between 0 (Sun) and 6 (Sat) -- Polycom dayOfWeek is 1=Sun, 7=Sat xml_attr({ dstprefix, pos, 'dayOfWeek' }, tonumber(t.weekday) + 1) - + -- POSIX week from 1 to 5, where 1st,2nd..4th, and 5=last if t.week == '5' then xml_attr({ dstprefix, pos, 'dayOfWeek.lastInMonth' }, true) @@ -176,7 +176,7 @@ if tz then end end - + if tz.dst then xml_attr({'tcpIpApp.sntp.daylightSavings.enable'}, true) -- cgit v1.2.3