handlebars.java icon indicating copy to clipboard operation
handlebars.java copied to clipboard

`~` outside of expression causes whitespace removal

Open mwhipple opened this issue 6 years ago • 1 comments

In using a template which includes the literal text ~*, the whitespace after that string is collapsed even though it is not within handlebars. I.e. ~* foo ends up rendered as ~*foo. An adopted workaround is to pass this to a helper such as {{upper "~*"}} (for instance {{upper "~*"}} foo produces the desired ~* foo but this seems like a bug.

mwhipple avatar Aug 22 '18 20:08 mwhipple

Hi,

I can't reproduce it. Can you provide an example?

jknack avatar Oct 29 '18 00:10 jknack