cmd/gofmt: gofmt -r should preserve multiline formatting #18677
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
go version devel +ac05542 Wed Jan 11 01:39:54 2017 +0000 linux/amd64
gofmt -r does not work well when rewriting multi-line expressions.
Given this code:
running:
results in:
In general, if the replacement expression contains multiple lines, their
placement is ignored.
The text was updated successfully, but these errors were encountered: