Descriptiongo/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 issue 1643.
Patch Set 1 #Patch Set 2 : diff -r ef9205423904 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r ef9205423904 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r ef9205423904 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r ef9205423904 https://go.googlecode.com/hg/ #Patch Set 6 : diff -r ef9205423904 https://go.googlecode.com/hg/ #Patch Set 7 : diff -r 018fe12531d1 https://go.googlecode.com/hg/ #
MessagesTotal messages: 4
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||