aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Lemons <kyle@kylelemons.net>2011-07-29 14:09:07 -0400
committerRuss Cox <rsc@golang.org>2011-07-29 14:09:07 -0400
commit31442a6737c98ba5297b348b87bc47edecf667c1 (patch)
treee91d3c04ab67d262f6bc8b68a83bbc94cbda5fe3
parent2d7ddfa64dcdc480f07c579f298b9019ba737f96 (diff)
downloadgo-31442a6737c98ba5297b348b87bc47edecf667c1.tar.gz
go-31442a6737c98ba5297b348b87bc47edecf667c1.zip
xml: Header: fix close tag and newline
R=rsc CC=golang-dev https://golang.org/cl/4830043
-rw-r--r--src/pkg/xml/marshal.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/xml/marshal.go b/src/pkg/xml/marshal.go
index 2ac03a91e2..f6e5bf5cdb 100644
--- a/src/pkg/xml/marshal.go
+++ b/src/pkg/xml/marshal.go
@@ -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.