From d75c5532d1cde5e20f39c165b39539bdc25bc355 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Thu, 25 Mar 2021 23:50:59 -0400 Subject: [PATCH] fix: handle raw mustache expressions over multiple lines --- server/modules/rendering/html-core/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/rendering/html-core/renderer.js b/server/modules/rendering/html-core/renderer.js index 1c618781..faa3549a 100644 --- a/server/modules/rendering/html-core/renderer.js +++ b/server/modules/rendering/html-core/renderer.js @@ -250,7 +250,7 @@ module.exports = { const list = $(node).contents().toArray() list.forEach(item => { if (item.type === 'text') { - const rawText = $(item).text() + const rawText = $(item).text().replace(/\r?\n|\r/g, '') if (mustacheRegExp.test(rawText)) { $(item).parent().attr('v-pre', true) }