From 2e8b375e0e14386160af9e40cd101d89cdbfadd0 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 10 Mar 2011 16:00:39 -0800 Subject: [PATCH] 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 --- src/pkg/go/ast/print.go | 1 + 1 file changed, 1 insertion(+) 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("}")