From: Robert Griesemer Date: Fri, 11 Mar 2011 00:00:39 +0000 (-0800) Subject: go/ast: fix printing of maps X-Git-Tag: weekly.2011-03-15~45 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2e8b375e0e14386160af9e40cd101d89cdbfadd0;p=gostls13.git go/ast: fix printing of maps Print a newline after each map entry; similar to the style used for slices and structs. R=r, r2 CC=golang-dev https://golang.org/cl/4274042 --- diff --git a/src/pkg/go/ast/print.go b/src/pkg/go/ast/print.go index e8194e7fa3..82c334ece6 100644 --- a/src/pkg/go/ast/print.go +++ b/src/pkg/go/ast/print.go @@ -158,6 +158,7 @@ func (p *printer) print(x reflect.Value) { p.print(key) p.printf(": ") p.print(v.Elem(key)) + p.printf("\n") } p.indent-- p.printf("}")