Skip to content

Commit 9298f46

Browse files
committed
feat(compiler-core): whitespace handling
1 parent 516501e commit 9298f46

File tree

10 files changed

+60
-109
lines changed

10 files changed

+60
-109
lines changed

packages/compiler-core/__tests__/__snapshots__/compile.spec.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ return function render() {
1111
id: \\"foo\\",
1212
class: bar.baz
1313
}, [
14-
_createVNode(_Text, null, _toString(world.burn()), 1 /* TEXT */),
14+
_createVNode(_Text, null, _toString(world.burn()) + \\" \\", 1 /* TEXT */),
1515
(_openBlock(), ok
1616
? _createBlock(\\"div\\", { key: 0 }, \\"yes\\")
1717
: _createBlock(_Fragment, { key: 1 }, [\\"no\\"])),
@@ -34,7 +34,7 @@ return function render() {
3434
id: \\"foo\\",
3535
class: _ctx.bar.baz
3636
}, [
37-
createVNode(Text, null, toString(_ctx.world.burn()), 1 /* TEXT */),
37+
createVNode(Text, null, toString(_ctx.world.burn()) + \\" \\", 1 /* TEXT */),
3838
(openBlock(), (_ctx.ok)
3939
? createBlock(\\"div\\", { key: 0 }, \\"yes\\")
4040
: createBlock(Fragment, { key: 1 }, [\\"no\\"])),
@@ -56,7 +56,7 @@ export default function render() {
5656
id: \\"foo\\",
5757
class: _ctx.bar.baz
5858
}, [
59-
createVNode(Text, null, toString(_ctx.world.burn()), 1 /* TEXT */),
59+
createVNode(Text, null, toString(_ctx.world.burn()) + \\" \\", 1 /* TEXT */),
6060
(openBlock(), (_ctx.ok)
6161
? createBlock(\\"div\\", { key: 0 }, \\"yes\\")
6262
: createBlock(Fragment, { key: 1 }, [\\"no\\"])),

0 commit comments

Comments
 (0)