]> Cypherpunks repositories - gostls13.git/commit
gofmt: do not modify multi-line string literals
authorRobert Griesemer <gri@golang.org>
Tue, 17 Aug 2010 04:37:10 +0000 (21:37 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 17 Aug 2010 04:37:10 +0000 (21:37 -0700)
commitfa80a73bee6890f19f747104dd84040d1d6ef0f3
tree19dbb6eac85d3efaa19f889531a212febc5c7b0b
parentb243d57eb4ab77f6446380beee762ea4b5481276
gofmt: do not modify multi-line string literals

tabwriter: Introduce a new flag StripEscape to control
if tabwriter.Escape chars should be stripped or passed
through unchanged.

go/printer: Don't modify tabwriter.Escape'd text. This
involved a new implementation of the internal trimmer
object.

Does not affect formatting of any existing code under
$GOROOT/src and $GOROOT/misc.

Fixes #1030.

R=rsc
CC=golang-dev
https://golang.org/cl/1943045
src/pkg/go/printer/printer.go
src/pkg/go/printer/testdata/expressions.golden
src/pkg/go/printer/testdata/expressions.input
src/pkg/go/printer/testdata/expressions.raw
src/pkg/tabwriter/tabwriter.go
src/pkg/tabwriter/tabwriter_test.go