]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: do not escape newlines
authorRoger Peppe <rogpeppe@gmail.com>
Fri, 24 Apr 2015 16:20:21 +0000 (17:20 +0100)
committerroger peppe <rogpeppe@gmail.com>
Mon, 27 Apr 2015 15:38:04 +0000 (15:38 +0000)
commit4a3e000a48fdfe4cbcfe8970db9c1ebec9c4b89d
treea84725971fefd062a64ec8f53177535f5e0e2e2d
parentb0b1a660526925d39c5c31e18df68db4d5b6687a
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>
src/encoding/xml/marshal.go
src/encoding/xml/marshal_test.go
src/encoding/xml/xml.go