-
-
Notifications
You must be signed in to change notification settings - Fork 397
Closed
Labels
Description
Using Scriban v 5.4.6
Template:
{{~ for test in ['A', 'B'] ~}}
{{ test}}
{{~ end ~}}
{{~ for test in ['A', 'B'] ~}}
{{ test}}
{{~ end ~}}
{{~ for test in ['A', 'B'] ~}}
{{ test}}
{{~ end ~}}
{{~ for test in ['A', 'B'] ~}}
{{ test}}
{{~ end ~}}
{{~ for test in ['A', 'B'] ~}}
{{ test}}
{{~ end ~}}
{{~ for test in ['A', 'B'] ~}}
{{ test}}
{{~ end ~}}
{{~ for test in ['A', 'B'] ~}}
{{ test}}
{{~ end ~}}
{{~ for test in ['A', 'B'] ~}}
{{ test}}
{{~ end ~}}
produces following output, with an unexpected extra indent on the first item of the 2nd for-loop after a blank line in the template
A
B
A
B
A
B
A
B
A
B
A
B
A
B
A
B
Disabling the auto-indent with 'TemplateContext.AutoIndent = false' fixes the issue