-
-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected trimming of whitespace after loop #472
Labels
Comments
Might be related to #468 |
I can reproduce this issue. Thanks for reporting. It has something to do with our empty line trimming strategy. We should trim at most one line. I will create a fix in days. |
sunng87
added a commit
that referenced
this issue
Nov 4, 2021
sunng87
added a commit
that referenced
this issue
Nov 5, 2021
sunng87
added a commit
that referenced
this issue
Nov 5, 2021
fix: trim at most one line directives #472
Released in 4.1.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a template like this:
handlebars 4.1.3 will remove the empty line after the loop (in fact, it will remove all empty lines if there are any):
I'm wondering why that happens though? I don't use
~
or anything else that controls whitespace. My understanding is that rendering should not change any non-templating bits.The text was updated successfully, but these errors were encountered: