There are two problems when splitting a function call inside an expression to multiple lines:
The arguments are indented to the same level as the expression relative to the {{. Strangely, this behavior is affected by comments (maybe other things) above the expression, but this is inconsistent. When this happens, then everything will only be indented to the first level relative to {{.
Calling another function as part of a function call adds a space behind the function and resets the indentation level for arguments below it.
How To Reproduce
Create a issue.html.jinja2 and set indentation to spaces: 2.
System Info
Issue
There are two problems when splitting a function call inside an expression to multiple lines:
{{
. Strangely, this behavior is affected by comments (maybe other things) above the expression, but this is inconsistent. When this happens, then everything will only be indented to the first level relative to{{
.How To Reproduce
Create a
issue.html.jinja2
and set indentation tospaces: 2
.