aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml/marshal_test.go
diff options
context:
space:
mode:
authorRoger Peppe <rogpeppe@gmail.com>2015-04-24 17:20:21 +0100
committerroger peppe <rogpeppe@gmail.com>2015-04-27 15:38:04 +0000
commit4a3e000a48fdfe4cbcfe8970db9c1ebec9c4b89d (patch)
treea84725971fefd062a64ec8f53177535f5e0e2e2d /src/encoding/xml/marshal_test.go
parentb0b1a660526925d39c5c31e18df68db4d5b6687a (diff)
downloadgo-4a3e000a48fdfe4cbcfe8970db9c1ebec9c4b89d.tar.xz
encoding/xml: do not escape newlines
There is no need to escape newlines in char data - it makes the XML larger and harder to read. Change-Id: I1c1fcee1bdffc705c7428f89ca90af8085d6fb73 Reviewed-on: https://go-review.googlesource.com/9310 Reviewed-by: Nigel Tao <nigeltao@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/encoding/xml/marshal_test.go')
-rw-r--r--src/encoding/xml/marshal_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go
index 8362421db7..5e9718c20c 100644
--- a/src/encoding/xml/marshal_test.go
+++ b/src/encoding/xml/marshal_test.go
@@ -1297,7 +1297,7 @@ var encodeTokenTests = []struct {
toks: []Token{
CharData(" \t\n"),
},
- want: ` &#x9;&#xA;`,
+ want: " &#x9;\n",
}, {
desc: "comment",
toks: []Token{