Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/gofmt: gofmt -r should preserve multiline formatting #18677
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:
In general, if the replacement expression contains multiple lines, their