]> Cypherpunks repositories - gostls13.git/commit
text/template: revert minor change to Name method
authorRob Pike <r@golang.org>
Sat, 9 Mar 2013 00:39:54 +0000 (16:39 -0800)
committerRob Pike <r@golang.org>
Sat, 9 Mar 2013 00:39:54 +0000 (16:39 -0800)
commit0406c63ea38520adf040f3f72ea3d8008dd53480
treec52344a2270c3d0c42fff4ad6e6b70caac5375ca
parent1b8f51c91794e3fb90e582ba22ad06b6ad28e1d4
text/template: revert minor change to Name method
For  better printing, I recently changed Name to return "<unnamed>" for templates
with empty names, but this causes trouble for the many packages that used "" as
the template name, so restore the old behavior.
It's usually printed as a quoted string anyway, so it should be fine.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/7577044
src/pkg/text/template/template.go