jknack / handlebars.java

Logic-less and semantic Mustache templates with Java
http://jknack.github.io/handlebars.java
Other
1.47k stars 382 forks source link

`~` outside of expression causes whitespace removal #650

Open mwhipple opened 6 years ago

mwhipple commented 6 years ago

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.

jknack commented 6 years ago

Hi,

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