handlebars.java
handlebars.java copied to clipboard
`~` outside of expression causes whitespace removal
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.
Hi,
I can't reproduce it. Can you provide an example?