From cca5b7854e99a28e623d4f8452e1f3f5e22f47f1 Mon Sep 17 00:00:00 2001 From: Rahul Upakare Date: Fri, 14 Jun 2019 20:40:38 +0530 Subject: [PATCH] fix   getting mapped as normal space --- src/compiler/compile/nodes/Text.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/nodes/Text.ts b/src/compiler/compile/nodes/Text.ts index 7500f5ff30d9..a4514f56f26e 100644 --- a/src/compiler/compile/nodes/Text.ts +++ b/src/compiler/compile/nodes/Text.ts @@ -12,7 +12,7 @@ export default class Text extends Node { super(component, parent, scope, info); this.data = info.data; - if (!component.component_options.preserveWhitespace && !/\S/.test(info.data)) { + if (!component.component_options.preserveWhitespace && !/[\S\u00A0]/.test(info.data)) { let node = parent; while (node) { if (node.type === 'Element' && node.name === 'pre') {