squirrelly icon indicating copy to clipboard operation
squirrelly copied to clipboard

template variable at end of line consumes newline

Open milahu opened this issue 4 years ago • 0 comments

template variable at end of line consumes newline

template

These fruits are amazing:

{{@each(it.fruits) => fruit}}

fruit = {{fruit}}
fruit = {{fruit}}

{{/each}}

actual result

These fruits are amazing:

fruit = Applefruit = Apple
fruit = Pearfruit = Pear
fruit = Orangefruit = Orange
fruit = Lemonfruit = Lemon

expected result

These fruits are amazing:

fruit = Apple
fruit = Apple
fruit = Pear
fruit = Pear
fruit = Orange
fruit = Orange
fruit = Lemon
fruit = Lemon

environment

https://squirrelly.js.org/playground/

milahu avatar Oct 29 '21 08:10 milahu