luci-proto-wireguard: fix markup not valid for XHTML
authorJo-Philipp Wich <jo@mein.io>
Thu, 7 Oct 2021 14:19:30 +0000 (16:19 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 Oct 2021 14:19:30 +0000 (16:19 +0200)
Fixes: #5407
Fixes: 03d615f62c ("luci-proto-wireguard: add more options to qr code")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js

index 51f9accf4600d324db4d844b5d1a4e3097d50f19..5795eaebec45b859b769d5b0cc5833ded4f4fdfd 100644 (file)
@@ -174,8 +174,11 @@ return network.registerProtocol('wireguard', {
                        ];
 
                        var description = [
-                               E('span', '%q<br>%q'.format(_('If there are any unsaved changes for this client, please save the configuration before generating a QR-Code'),
-                                       _('The QR-Code works per wg interface, it will be refreshed with every button click and transfers the following information:'))),
+                               E('span', [
+                                       _('If there are any unsaved changes for this client, please save the configuration before generating a QR-Code'),
+                                       E('br'),
+                                       _('The QR-Code works per wg interface, it will be refreshed with every button click and transfers the following information:')
+                               ]),
                                E('ul', [
                                        generateDescription('[Interface]', interfaceTexts),
                                        generateDescription('[Peer]', peerTexts)