From 352e8919dc272b49776cad2e26e9c358c1c33123 Mon Sep 17 00:00:00 2001 From: handongxun Date: Tue, 29 Mar 2022 15:44:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20nvue=20=E6=A8=A1=E6=9D=BF=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=90=8E=E6=B2=A1=E6=9C=89=E5=8E=BB=E9=99=A4=E9=A6=96?= =?UTF-8?q?=E5=B0=BE=E7=A9=BA=E6=A0=BC=E6=8D=A2=E8=A1=8C=E7=AC=A6=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=8D=A0=E7=94=A8=E7=BB=84=E4=BB=B6=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../packages/weex-template-compiler/build.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js b/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js index f884ce031..7624fc305 100644 --- a/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js +++ b/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js @@ -1648,6 +1648,7 @@ function parse ( // condense consecutive whitespaces into single space text = text.replace(whitespaceRE, ' '); } + text = text.trim(); var res; var child; if (!inVPre && text !== ' ' && (res = parseText(text, delimiters))) { -- GitLab