From df614ffd43baed82cef569664ee1082abb998d30 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 23 Jul 2018 15:10:55 +0200 Subject: [PATCH] luci-base: strip superfluous space in additional field markup Signed-off-by: Jo-Philipp Wich (cherry picked from commit c27a77756c718a0b3babd510f83850bd9e2ac431) --- modules/luci-base/luasrc/view/cbi/ucisection.htm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 %> -- 2.25.1