From 01ecb1ac8ac8379df0964f0745c896f2baccaade Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 7 Oct 2021 16:19:30 +0200 Subject: [PATCH] luci-proto-wireguard: fix markup not valid for XHTML Fixes: #5407 Fixes: 03d615f62c ("luci-proto-wireguard: add more options to qr code") Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/protocol/wireguard.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js index 51f9accf46..5795eaebec 100644 --- a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js +++ b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js @@ -174,8 +174,11 @@ return network.registerProtocol('wireguard', { ]; var description = [ - E('span', '%q
%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) -- 2.30.2