-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
An inline partial should not be indented #715
Comments
Thanks for reporting! I for sure agree your example looks both weird and unexpected. Without digging deep into how this could be solved in this project, I'm starting to get curious how other mustache implementations (java, PHP etc) handles indentation of partials. The expected (or shall we say sensible) output of your example would be great to have as an unit test inside ./test/partial-test.js. |
@yotammadem you got any thoughts on this by any chance? |
I will take a look at this soon. Strange that the partials spec does not test it |
This is strange..
The unit test passed.. |
Ok, it was my mistake, when I ran this test, it failed:
|
The content of an inline partial is indented in v3.0.2 (of course not in v3.0.1). People does not want these extra white spaces in an HTML file.
test.json:
test.mustache:
partial.mustache:
Run:
The text was updated successfully, but these errors were encountered: