Formatter should handle multiline function call with closing parenthesis on same line as last argument #22558
Labels
cli
enhancement
fmt
Bug reports and feature requests related to Terraform's auto-formatter command "terraform fmt"
Given this code:
I would have expected
terraform fmt
to indent"format")
to the same level as"example",
, but the snippet above is the formatted output.If I add a newline before the ending parenthesis, the rationale behind this becomes a little more obvious - the formatted document now looks like this:
It would be nice if the formatter knew to insert that newline, so I don't have to. It took me a while to figure out what I had to do to make this code format nicely 😄
The text was updated successfully, but these errors were encountered: