summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-radicale/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-10-08 19:43:03 +0200
committerJo-Philipp Wich <jo@mein.io>2021-10-08 19:53:09 +0200
commit40d449c1d8347338843202aa04ce97f3534ef599 (patch)
tree1c6036c64879aa340ffaa94dbb0f51c166d6de12 /applications/luci-app-radicale/luasrc
parent7d53888477b39f48deac39ad330838505c47e8d7 (diff)
luci-app-radicale: fix markup which is not valid XHTML
XHTML does not specify `&nbsp;`, use `&#160;` instead. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-radicale/luasrc')
-rw-r--r--applications/luci-app-radicale/luasrc/controller/radicale.lua18
-rw-r--r--applications/luci-app-radicale/luasrc/view/radicale/tabmap_nsections.htm2
2 files changed, 10 insertions, 10 deletions
diff --git a/applications/luci-app-radicale/luasrc/controller/radicale.lua b/applications/luci-app-radicale/luasrc/controller/radicale.lua
index 291f1b4dcc..53424207fa 100644
--- a/applications/luci-app-radicale/luasrc/controller/radicale.lua
+++ b/applications/luci-app-radicale/luasrc/controller/radicale.lua
@@ -58,25 +58,25 @@ function app_title_back()
end
function app_err_value()
if not service_version() then
- return [[<h3><strong><br /><font color="red">&nbsp;&nbsp;&nbsp;&nbsp;]]
+ return [[<h3><strong><br /><font color="red">&#160;&#160;&#160;&#160;]]
.. I18N.translate("Software package '%s' is not installed." % srv_name)
- .. [[</font><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]
+ .. [[</font><br /><br />&#160;&#160;&#160;&#160;&#160;&#160;]]
.. I18N.translate("required") .. [[: ]] .. srv_name .. [[ ]] .. srv_ver_min
- .. [[<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;]]
+ .. [[<br /><br />&#160;&#160;&#160;&#160;]]
.. [[<a href="]] .. DISP.build_url("admin", "system", "packages") ..[[">]]
.. I18N.translate("Please install current version !")
- .. [[</a><br />&nbsp;</strong></h3>]]
+ .. [[</a><br />&#160;</strong></h3>]]
else
- return [[<h3><strong><br /><font color="red">&nbsp;&nbsp;&nbsp;&nbsp;]]
+ return [[<h3><strong><br /><font color="red">&#160;&#160;&#160;&#160;]]
.. I18N.translate("Software package '%s' is outdated." % srv_name)
- .. [[</font><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]
+ .. [[</font><br /><br />&#160;&#160;&#160;&#160;&#160;&#160;]]
.. I18N.translate("installed") .. [[: ]] .. srv_name .. [[ ]] .. service_version()
- .. [[<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]
+ .. [[<br />&#160;&#160;&#160;&#160;&#160;&#160;]]
.. I18N.translate("required") .. [[: ]] .. srv_name .. [[ ]] .. srv_ver_min
- .. [[<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;]]
+ .. [[<br /><br />&#160;&#160;&#160;&#160;]]
.. [[<a href="]] .. DISP.build_url("admin", "system", "packages") ..[[">]]
.. I18N.translate("Please update to current version !")
- .. [[</a><br />&nbsp;</strong></h3>]]
+ .. [[</a><br />&#160;</strong></h3>]]
end
end
diff --git a/applications/luci-app-radicale/luasrc/view/radicale/tabmap_nsections.htm b/applications/luci-app-radicale/luasrc/view/radicale/tabmap_nsections.htm
index fdb3f27abc..1ad8f0061e 100644
--- a/applications/luci-app-radicale/luasrc/view/radicale/tabmap_nsections.htm
+++ b/applications/luci-app-radicale/luasrc/view/radicale/tabmap_nsections.htm
@@ -47,7 +47,7 @@
<% for _, section in ipairs(self.children) do %>
<% if section.error and section.error[section.section] then -%>
<ul><li>
- <%:One or more missing/invalid fields on tab%>:&nbsp;<%=section.title or section.section or section.sectiontype%>
+ <%:One or more missing/invalid fields on tab%>:&#160;<%=section.title or section.section or section.sectiontype%>
</li></ul>
<%- end %>
<% end %>