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

Issue 4119056: code review 4119056: go/printer, gofmt: smarter handling of multi-line raw s... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by gri
Modified:
14 years ago
Reviewers:
rsc
CC:
r, golang-dev
Visibility:
Public.

Description

go/printer, gofmt: smarter handling of multi-line raw strings If a multi-line raw string is the first token on a line, it should not be indented because the following lines (belonging to the raw string) are not indented either. Adjusted src of ebnf/ebnf_test.go manually as it now is formatted as expected. gofmt -w src misc Fixes issue 1072.

Patch Set 1 #

Patch Set 2 : diff -r 75d6775388d8 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 75d6775388d8 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 75d6775388d8 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 204118e30fbd https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 204118e30fbd https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 7 : diff -r 204118e30fbd https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 204118e30fbd https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r 204118e30fbd https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -40 lines) Patch
M src/pkg/ebnf/ebnf_test.go View 1 2 3 4 1 chunk +21 lines, -21 lines 0 comments Download
M src/pkg/go/printer/printer.go View 1 2 3 4 5 6 7 6 chunks +69 lines, -18 lines 0 comments Download
M src/pkg/go/printer/testdata/expressions.golden View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download
M src/pkg/go/printer/testdata/expressions.input View 1 2 3 1 chunk +79 lines, -0 lines 0 comments Download
M src/pkg/go/printer/testdata/expressions.raw View 1 2 3 4 1 chunk +71 lines, -1 line 0 comments Download

Messages

Total messages: 6
gri
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 1 month ago (2011-02-05 00:41:17 UTC) #1
r
LGTM http://codereview.appspot.com/4119056/diff/8001/src/pkg/go/printer/printer.go File src/pkg/go/printer/printer.go (right): http://codereview.appspot.com/4119056/diff/8001/src/pkg/go/printer/printer.go#newcode853 src/pkg/go/printer/printer.go:853: // the opening quote (`) is on a ...
14 years, 1 month ago (2011-02-05 00:47:57 UTC) #2
gri
*** Submitted as http://code.google.com/p/go/source/detail?r=d9b414fc9626 *** go/printer, gofmt: smarter handling of multi-line raw strings If a ...
14 years, 1 month ago (2011-02-05 01:34:18 UTC) #3
rsc
Because this change is content-dependent (multiline or not), it makes it impossible to write consistently ...
14 years ago (2011-02-22 18:12:22 UTC) #4
gri
I was aware of these issues. Either way, I am not feeling strongly about this. ...
14 years ago (2011-02-22 19:18:30 UTC) #5
rsc
14 years ago (2011-02-22 19:21:00 UTC) #6
I ran across this in a real program over the weekend.
The `` strings were SQL commands.  You don't care
about white space there but they had been consistently
formatted & indented but now cannot be.

Russ
Sign in to reply to this message.

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