]> Cypherpunks repositories - gostls13.git/commit
go/format: handle whitespace-only input correctly
authorRobert Griesemer <gri@golang.org>
Wed, 30 Sep 2015 00:34:32 +0000 (17:34 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 30 Sep 2015 16:39:43 +0000 (16:39 +0000)
commit829cc349c5990ecba52141bd978a99ee1571bc08
tree8a63f443a149388ac3a0294c047713d3380a0835
parenta4fc3512ba85125d51e5e27491a6dd331cd2599b
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>
src/cmd/gofmt/internal.go
src/go/format/format_test.go
src/go/format/internal.go