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

Partial indent should apply to every line of partial string #504

Closed
sunng87 opened this issue May 14, 2022 · 2 comments · Fixed by #505
Closed

Partial indent should apply to every line of partial string #504

sunng87 opened this issue May 14, 2022 · 2 comments · Fixed by #505
Assignees
Labels

Comments

@sunng87
Copy link
Owner

sunng87 commented May 14, 2022

Case to reproduce this issue.

Given

{{#*inline "thepartial"}}
  inner first line
  inner second line
{{/inline}}
  {{> thepartial}}

Expected result:

    inner first line
    inner second line

Current implementation:

    inner first line
  inner second line
@mmun
Copy link

mmun commented Apr 11, 2023

This fix doesn't seem to work correctly if there is a block, e.g. {{#if}} within the partial. The content inside the block is not indented.

@sunng87
Copy link
Owner Author

sunng87 commented Apr 12, 2023

@mmun can you give me a full example to reproduce? Thank you!

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

Successfully merging a pull request may close this issue.

2 participants