You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ func x -}}
x {{ $0 }}
{
a
}
{{ end -}}
{
{{ x 12 }}
}
which produces the following output
{
x 12
{
a
}
}
The following template is a variant of the above, but with whitespace control introduced
{{ func x -}}
x {{ $0 }}
{
{{~ "a" }}
}
{{ end -}}
{
{{ x 12 }}
}
Curiously, it instead produces the output
{
x 12
{
a
}
}
The text was updated successfully, but these errors were encountered:
Arthri
changed the title
Whitespace Control leaks out of function scope
Whitespace control inside of functions affects auto-indent of caller
Jun 23, 2024
Tested on .NET 8 and Scriban 5.10.0
Consider the following template,
which produces the following output
The following template is a variant of the above, but with whitespace control introduced
Curiously, it instead produces the output
The text was updated successfully, but these errors were encountered: