From: Jo-Philipp Wich Date: Mon, 23 Jul 2018 13:10:55 +0000 (+0200) Subject: luci-base: strip superfluous space in additional field markup X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=df614ffd43baed82cef569664ee1082abb998d30;p=oweals%2Fluci.git luci-base: strip superfluous space in additional field markup Signed-off-by: Jo-Philipp Wich (cherry picked from commit c27a77756c718a0b3babd510f83850bd9e2ac431) --- diff --git a/modules/luci-base/luasrc/view/cbi/ucisection.htm b/modules/luci-base/luasrc/view/cbi/ucisection.htm index 2cb1e75d0..8fa11d68f 100644 --- a/modules/luci-base/luasrc/view/cbi/ucisection.htm +++ b/modules/luci-base/luasrc/view/cbi/ucisection.htm @@ -32,25 +32,25 @@ <% if self.optionals[section] and #self.optionals[section] > 0 or self.dynamic then %>
- <% + <%- if self.dynamic then local keys, vals, name, opt = { }, { } for name, opt in pairs(self.optionals[section]) do keys[#keys+1] = name vals[#vals+1] = opt.title end - %> + -%> 0, "data-choices", luci.util.json_encode({keys, vals})) %> /> - <% else %> + <%- else -%> - <% end %> + <%- end -%>
<% end %>