1
0
mirror of https://github.com/golang/go synced 2024-10-05 12:21:22 -06:00
Commit Graph

3 Commits

Author SHA1 Message Date
Robert Griesemer
1afc37fa7e go/printer/gofmt: remove special case for multi-line raw strings
As a special case, multi-line raw strings (i.e., strings in `` quotes)
were not indented if they were the only token on a line. This heuristic
was meant to improve formatting for multi-line raw strings where sub-
sequent lines are not indented at the level of the surrounding code.
Multiple people have complained about this. Removing the heuristic
again because it makes the formatting more regular, easier to under-
stand, and simplifies the implementation.

- manual changes to ebnf/ebnf_test.go for readability
- gofmt -w src misc

Fixes #1643.

R=r, rsc
CC=golang-dev
https://golang.org/cl/4307045
2011-03-29 18:30:59 -07:00
Russ Cox
35c274a0da gofix: fix procattr registration, tests
R=adg
CC=golang-dev
https://golang.org/cl/4275054
2011-03-16 13:58:09 +11:00
Russ Cox
d7106f280d gofix: procattr
R=adg
CC=golang-dev
https://golang.org/cl/4274059
2011-03-15 22:33:57 -04:00