Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(83)

Issue 5496047: code review 5496047: go/printer, gofmt: don't write too many newlines (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by gri
Modified:
13 years, 3 months ago
Reviewers:
CC:
golang-dev, r
Visibility:
Public.

Description

go/printer, gofmt: don't write too many newlines In some rare cases, gofmt would accept more than the maximum number of empty lines (1) between source code snippets. The actual change is in printer.go, lines 773-775; the rest is some minor restructuring. Applied gofmt -w src misc . Fixes issue 2387.

Patch Set 1 #

Patch Set 2 : diff -r 6cfb9f2415fa https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 6cfb9f2415fa https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 9ffee5b34ea0 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -54 lines) Patch
M src/cmd/cgo/godefs.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/bytes/buffer_test.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/go/printer/nodes.go View 1 1 chunk +4 lines, -1 line 0 comments Download
M src/pkg/go/printer/printer.go View 1 13 chunks +51 lines, -49 lines 0 comments Download
M src/pkg/go/printer/testdata/statements.golden View 1 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 3
gri
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 3 months ago (2011-12-15 21:44:49 UTC) #1
r
LGTM
13 years, 3 months ago (2011-12-15 21:46:00 UTC) #2
gri
13 years, 3 months ago (2011-12-15 21:51:50 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=68962b02be7e ***

go/printer, gofmt: don't write too many newlines

In some rare cases, gofmt would accept more than the maximum
number of empty lines (1) between source code snippets.

The actual change is in printer.go, lines 773-775; the rest
is some minor restructuring.

Applied gofmt -w src misc .

Fixes issue 2387.

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/5496047
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b