Closed jakeheis closed 7 years ago
When including a partial directly after an if statement, only the first line is correctly indented.
template:
template
lines: {{#include}} {{> partial.yml }} {{/include}} key: value
partial:
partial
- first line - second line
When include="true":
include="true"
Expected:
lines: - first line - second line key: value
Got:
I'm working around this currently by adding a comment between the if statement and the partial:
lines: {{#include}} # Fixes indentation {{> partial.yml }} {{/include}} key: value
Output (which is correct):
lines: # Fixes indentation - first line - second line key: value
I've just pushed some changes that should close this issue. Would you take a look and see if those changes also work for you?
That fixes the issue, thanks so much!
When including a partial directly after an if statement, only the first line is correctly indented.
template
:partial
:When
include="true"
:Expected:
Got:
I'm working around this currently by adding a comment between the if statement and the partial:
template
:Output (which is correct):