]> Cypherpunks repositories - gostls13.git/commitdiff
xml: Header: fix close tag and newline
authorKyle Lemons <kyle@kylelemons.net>
Fri, 29 Jul 2011 18:09:07 +0000 (14:09 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 29 Jul 2011 18:09:07 +0000 (14:09 -0400)
R=rsc
CC=golang-dev
https://golang.org/cl/4830043

src/pkg/xml/marshal.go

index 2ac03a91e2d8b21bcea5c8b3d5a1387fcb74f9ad..f6e5bf5cdba5d3f6a184ea3a661f7c512533dc16 100644 (file)
@@ -14,10 +14,10 @@ import (
 )
 
 const (
-       // A generic XML header suitable for use with the output of Marshal and MarshalIndent.
-       // This is not automatically added to any output of this package, it is provided as a
-       // convenience.
-       Header = `<?xml version="1.0" encoding="UTF-8">\n`
+       // A generic XML header suitable for use with the output of Marshal and
+       // MarshalIndent.  This is not automatically added to any output of this
+       // package, it is provided as a convenience.
+       Header = `<?xml version="1.0" encoding="UTF-8"?>` + "\n"
 )
 
 // A Marshaler can produce well-formatted XML representing its internal state.