diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-08-10 16:08:22 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-08-10 16:08:22 +0000 |
commit | 12d3537a7cb975b0a75698f1e1f90e66313a6893 (patch) | |
tree | f16f1452d0da2174ca751613b8281532324d80ca /config/templates/polycom-template.lua | |
parent | 74712ccf2dbd80ed950fb53f22a7ddc96d8f36ef (diff) | |
download | acf-provisioning-12d3537a7cb975b0a75698f1e1f90e66313a6893.tar.bz2 acf-provisioning-12d3537a7cb975b0a75698f1e1f90e66313a6893.tar.xz |
Remove trailing whitespace
Diffstat (limited to 'config/templates/polycom-template.lua')
-rw-r--r-- | config/templates/polycom-template.lua | 10 |
1 files changed, 5 insertions, 5 deletions
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) |