go/printer: blank lines at top/bottom of composite literal handled differently by gofmt #23143
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Searched and didn't find a duplicate issue.
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?play.golang.org
What did you do?
https://play.golang.org/p/xDO9L4ROUA (press the format button)
What did you expect to see?
Either both blank lines in the composite literal removed, or neither of them removed.
What did you see instead?
The bottom blank line is removed, but not the top.
The text was updated successfully, but these errors were encountered: