]> Cypherpunks repositories - gostls13.git/commit
text/template/parse: use human error prints
authorRob Pike <r@golang.org>
Thu, 19 Jan 2012 21:51:37 +0000 (13:51 -0800)
committerRob Pike <r@golang.org>
Thu, 19 Jan 2012 21:51:37 +0000 (13:51 -0800)
commitc837e612bd449cd7298ce925749b9f09b54fea48
tree5ba1f5db3c28cc1e7588b91e9e84f29f501cdccb
parentc354f93b93294406f92fecdc9913b7c050472894
text/template/parse: use human error prints
The previous version of all the node.String methods printed the parse
tree and was useful for developing the parse tree code. Now that that's done,
we might as well print the nodes using the standard template syntax.
It's much easier to read and makes error reporting look more natural.

Helps issue 2644.

R=rsc, n13m3y3r
CC=golang-dev
https://golang.org/cl/5553066
src/pkg/html/template/escape_test.go
src/pkg/text/template/multi_test.go
src/pkg/text/template/parse/node.go
src/pkg/text/template/parse/parse_test.go