1
0
mirror of https://github.com/golang/go synced 2024-10-05 14:01:21 -06:00
go/src/cmd/gofmt
Robert Griesemer 829cc349c5 go/format: handle whitespace-only input correctly
Applied identical change to cmd/gofmt/internal.go.

Fixes #11275.

Change-Id: Icb4bf0460c94c9e2830dd0d62c69376774cbda30
Reviewed-on: https://go-review.googlesource.com/15154
Reviewed-by: Alan Donovan <adonovan@google.com>
2015-09-30 16:39:43 +00:00
..
testdata go/format, cmd/gofmt: fix issues with partial Go code with indent 2014-09-29 17:04:48 -07:00
doc.go gofmt/doc: gofmt -s output may not be backward compatible 2015-02-08 05:13:00 +00:00
gofmt_test.go cmd/gofmt: make test files self-describing 2014-08-21 17:25:13 -07:00
gofmt.go go/format, cmd/gofmt: avoid dependency on internal package format 2015-09-30 16:32:47 +00:00
internal.go go/format: handle whitespace-only input correctly 2015-09-30 16:39:43 +00:00
long_test.go go/format, cmd/gofmt: avoid dependency on internal package format 2015-09-30 16:32:47 +00:00
rewrite.go all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
simplify.go gofmt: -s flag simplifies "for _ = range x" 2014-07-17 09:40:27 -07:00