Skip to content
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

Indentations are not correct #378

Open
sgdot opened this issue Oct 31, 2021 · 1 comment
Open

Indentations are not correct #378

sgdot opened this issue Oct 31, 2021 · 1 comment

Comments

@sgdot
Copy link

sgdot commented Oct 31, 2021

Hi,

There seems to be an issue with indentation when the depth of nested partials.

For example:

test.mustache

indent
    {{>tpl_inner}}

tpl_inner.mustache

{{var}}
next line1
{{>tpl_inner2}}

tpl_inner2.mustache

{{var}}
next line2

result:

indent
    value
    next line1
value
next line2

ruby implementation result

indent
    value
    next line1
    value
    next line2
@yessure
Copy link

yessure commented Nov 24, 2021

Is this normal?

test.mustache

indent
    {{>tpl_inner}}

tpl_inner.mustache

{{var}}
next line1
{{#onetothree}}{{.}}{{/onetothree}}

result

indent
    value
    next line1
    1    2    3

test.mustache

indent
  x  {{>tpl_inner}}

tpl_inner.mustache

{{var}}
next line1
{{#onetothree}}{{.}}{{/onetothree}}

result

indent
  x  value
next line1
123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants