luci-app-mwan3: fix strict XHTML syntax error
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 28 Mar 2018 07:17:13 +0000 (09:17 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 28 Mar 2018 08:59:42 +0000 (10:59 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua

index 4b1a070d1bffdb981bff86fb5aabe01630cbab85..14bf1384f78eff1673f07348a2792049794cc4aa 100644 (file)
@@ -8,37 +8,37 @@ dsp = require "luci.dispatcher"
 function interfaceWarnings(overview, count)
        local warnings = ""
        if count <= 250 then
-               warnings = string.format("<strong>%s</strong></br>",
+               warnings = string.format("<strong>%s</strong><br />",
                        translatef("There are currently %d of 250 supported interfaces configured", count)
                        )
        else
-               warnings = string.format("<strong>%s</strong></br>",
+               warnings = string.format("<strong>%s</strong><br />",
                        translatef("WARNING: %d interfaces are configured exceeding the maximum of 250!", count)
                        )
        end
 
        for i, k in pairs(overview) do
                if overview[i]["network"] == false then
-                       warnings = warnings .. string.format("<strong>%s</strong></br>",
+                       warnings = warnings .. string.format("<strong>%s</strong><br />",
                                        translatef("WARNING: Interface %s are not found in /etc/config/network", i)
                                        )
                end
 
                if overview[i]["default_route"] == false then
-                       warnings = warnings .. string.format("<strong>%s</strong></br>",
+                       warnings = warnings .. string.format("<strong>%s</strong><br />",
                                translatef("WARNING: Interface %s has no default route in the main routing table", i)
                                )
                end
 
                if overview[i]["reliability"] == false then
-                       warnings = warnings .. string.format("<strong>%s</strong></br>",
+                       warnings = warnings .. string.format("<strong>%s</strong><br />",
                                translatef("WARNING: Interface %s has a higher reliability " ..
                                "requirement than tracking hosts (%d)", i, overview[i]["tracking"])
                                )
                end
 
                if overview[i]["duplicate_metric"] == true then
-                       warnings = warnings .. string.format("<strong>%s</strong></br>",
+                       warnings = warnings .. string.format("<strong>%s</strong><br />",
                                translatef("WARNING: Interface %s has a duplicate metric %s configured", i, overview[i]["metric"])
                                )
                end
index 7f127820697919e7f9d46dde086705703283d37f..c4567f756b69d5358791898cbf0510d8a4d0b8de 100644 (file)
@@ -24,7 +24,7 @@ function policyError(policy_error)
        local warnings = ""
        for i, k in pairs(policy_error) do
                if policy_error[i] == true then
-                       warnings = warnings .. string.format("<strong>%s</strong></br>",
+                       warnings = warnings .. string.format("<strong>%s</strong><br />",
                                translatef("WARNING: Policie %s has exceeding the maximum name of 15 characters", i)
                                )
                end
index cb2a99537bc3910e8c77b11f5a9839cf0a3bb3dd..fb885f8b37a79db3636b10facb8bc1e1bb63c280 100644 (file)
@@ -28,7 +28,7 @@ function ruleWarn(rule_error)
        local warnings = ""
        for i, k in pairs(rule_error) do
                if rule_error[i] == true then
-                       warnings = warnings .. string.format("<strong>%s</strong></br>",
+                       warnings = warnings .. string.format("<strong>%s</strong><br />",
                                translatef("WARNING: Rule %s have a port configured with no or improper protocol specified!", i)
                                )
                end