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
Using Scriban v 5.4.6
Template:
produces following output, with an unexpected extra indent on the first item of the 2nd for-loop after a blank line in the template
Disabling the auto-indent with 'TemplateContext.AutoIndent = false' fixes the issue