% local view, viewlibrary, page_info = ... html = require("acf.html") %>
<%= string.gsub(html.html_escape(loc.errtxt), "\n", "
") %>
No locations defined
<% else %> <% end %> <% local function doListIndents(next, indent) local newentry = {} for mt in string.gmatch(next, "([^.]+)") do table.insert(newentry, mt) end local revnewentry = {} for j=#newentry,1,-1 do table.insert(revnewentry, newentry[j]) end local i=1 while indent[i] and revnewentry[i] == indent[i] do i=i+1 end local ending = #indent-(i-1) local starting = #newentry-(i-1) for j=1,ending do io.write("\n") end for j=1,starting do io.write("<%= html.html_escape(entry.configline) %>
<%= html.html_escape(view.fieldlabels[entry.type][k]) %>: | <%= html.html_escape(option) %> |
<%= string.gsub(html.html_escape(entry.errtxt), "\n", "
") %>
No records defined
<% else doListIndents("", indent) %>