-
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
Partial do not inherit indentation. #562
Comments
Beautiful code have proper indentation. |
Interesting, I didn't know about that part of the spec. We probably don't have any tests for that. Thanks for pointing it out! |
As referenced in this issue: janl#562 Partials aren't indented as per the spec: https://github.com/mustache/spec/blob/master/specs/partials.yml#L13-L15 This adds indentation tracking for partials and applies them to the first instance of a partial on a line (to not indent inline partials which would violate a different part of the spec).
Any update? |
could you fix this? |
Could other mustache implementations solve it? |
I am proposing a solution (in the above PR) which fully complies with the partials spec. |
As referenced in this issue: #562 Partials aren't indented as per the spec: https://github.com/mustache/spec/blob/master/specs/partials.yml#L13-L15 This adds indentation tracking for partials and applies them to the first instance of a partial on a line (to not indent inline partials which would violate a different part of the spec).
This got fixed in #705. |
(NodeJS)
this printed
but i was expecting.
The text was updated successfully, but these errors were encountered: