cmd/gofmt: multiline function arguments are inconsistently indented #39586
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?The playground reports that it's using go1.14.3.
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?The playground hides this information.
What did you do?
Format a function call with multiline arguments:
https://play.golang.org/p/UefV4IrB2C2
What did you expect to see?
Each multiline argument's continuation lines to be indented the same amount:
What did you see instead?
The continuation lines of the multiline argument that starts on the same line as the function call are not indented, but the remaining arguments are:
The text was updated successfully, but these errors were encountered: