beam/data: prettier Message.Pretty()

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
Solomon Hykes 2014-03-25 18:36:11 -07:00
parent f636d3fcec
commit bfb13651fa

View file

@ -65,7 +65,7 @@ func (m Message) Pretty() string {
for k, values := range data { for k, values := range data {
entries = append(entries, fmt.Sprintf("%s=%s", k, strings.Join(values, ","))) entries = append(entries, fmt.Sprintf("%s=%s", k, strings.Join(values, ",")))
} }
return strings.Join(entries, "\n") return strings.Join(entries, " ")
} }
func (m Message) String() string { func (m Message) String() string {