diff options
| author | Robert Griesemer <gri@golang.org> | 2011-12-01 14:33:24 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2011-12-01 14:33:24 -0800 |
| commit | 15a3a5cf6c3ba9ef29f086d20dd41a377428fadb (patch) | |
| tree | 6730ee885b73fd62edb3342d7e43854ba8606261 /src/pkg/html | |
| parent | e281576b9acaba6a7d088c8446fc2c3bfa2e3b96 (diff) | |
| download | go-15a3a5cf6c3ba9ef29f086d20dd41a377428fadb.tar.xz | |
gofmt: applied gofmt -w -s src misc
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5451070
Diffstat (limited to 'src/pkg/html')
| -rw-r--r-- | src/pkg/html/render_test.go | 8 | ||||
| -rw-r--r-- | src/pkg/html/template/escape.go | 2 | ||||
| -rw-r--r-- | src/pkg/html/template/escape_test.go | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/pkg/html/render_test.go b/src/pkg/html/render_test.go index d166a3b873..1b68b258f2 100644 --- a/src/pkg/html/render_test.go +++ b/src/pkg/html/render_test.go @@ -30,11 +30,11 @@ func TestRenderer(t *testing.T) { Type: ElementNode, Data: "p", Attr: []Attribute{ - Attribute{ + { Key: "id", Val: "A", }, - Attribute{ + { Key: "foo", Val: `abc"def`, }, @@ -48,7 +48,7 @@ func TestRenderer(t *testing.T) { Type: ElementNode, Data: "b", Attr: []Attribute{ - Attribute{ + { Key: "empty", Val: "", }, @@ -64,7 +64,7 @@ func TestRenderer(t *testing.T) { Type: ElementNode, Data: "i", Attr: []Attribute{ - Attribute{ + { Key: "backslash", Val: `\`, }, diff --git a/src/pkg/html/template/escape.go b/src/pkg/html/template/escape.go index 4a7a9354c9..2f6be3b6c2 100644 --- a/src/pkg/html/template/escape.go +++ b/src/pkg/html/template/escape.go @@ -716,7 +716,7 @@ func (e *escaper) editTextNode(n *parse.TextNode, text []byte) { // commit applies changes to actions and template calls needed to contextually // autoescape content and adds any derived templates to the set. func (e *escaper) commit() { - for name, _ := range e.output { + for name := range e.output { e.template(name).Funcs(funcMap) } for _, t := range e.derived { diff --git a/src/pkg/html/template/escape_test.go b/src/pkg/html/template/escape_test.go index b4daca7d6b..9f85193539 100644 --- a/src/pkg/html/template/escape_test.go +++ b/src/pkg/html/template/escape_test.go @@ -1597,7 +1597,7 @@ func TestRedundantFuncs(t *testing.T) { for n0, m := range redundantFuncs { f0 := funcMap[n0].(func(...interface{}) string) - for n1, _ := range m { + for n1 := range m { f1 := funcMap[n1].(func(...interface{}) string) for _, input := range inputs { want := f0(input) |
