From c27a77756c718a0b3babd510f83850bd9e2ac431 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 --- 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 2cb1e75d0e..8fa11d68f8 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.30.2