]> Cypherpunks repositories - gostls13.git/commit
text/template/parse: print TextNodes using %s not %q
authorRob Pike <r@golang.org>
Wed, 31 Jul 2013 05:09:13 +0000 (15:09 +1000)
committerRob Pike <r@golang.org>
Wed, 31 Jul 2013 05:09:13 +0000 (15:09 +1000)
commitdf4de948a5145519411696b4f741bcdd6480bece
tree0bc49fdd6b0445b1186e7d7a4036a1503ce1bd5d
parent221af5c12fe9769b723b8af2f000ed5f39a5dbb3
text/template/parse: print TextNodes using %s not %q
This means that printing a Node will produce output that can be used as valid input.
It won't be exactly the same - some spacing may be different - but it will mean the same.

Fixes #4593.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12006047
src/pkg/text/template/multi_test.go
src/pkg/text/template/parse/node.go
src/pkg/text/template/parse/parse_test.go