]> Cypherpunks repositories - gostls13.git/commit
- bug fix: must not insert indentation tabs into multi-line strings in RawFormat
authorRobert Griesemer <gri@golang.org>
Thu, 15 Oct 2009 17:41:07 +0000 (10:41 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 15 Oct 2009 17:41:07 +0000 (10:41 -0700)
commit8c101739d9c68dc2feae3b63e482c245fda7a987
tree879fc4c4a1ca889655d22399930778a7c1cd9451
parent8f8a393b40535b02f358196f5fbdb855c92bb0fa
- bug fix: must not insert indentation tabs into multi-line strings in RawFormat
  (always write tabwriter.Escape chars so formatting is driven correctly; but strip
  them again in the end if no tabwriter is used)
- added testcase for RawFormat printing

R=rsc
DELTA=227  (198 added, 6 deleted, 23 changed)
OCL=35772
CL=35774
src/pkg/go/printer/printer.go
src/pkg/go/printer/printer_test.go
src/pkg/go/printer/testdata/expressions.raw [new file with mode: 0644]