aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2011-09-05 15:03:41 +1000
committerAndrew Gerrand <adg@golang.org>2011-09-05 15:03:41 +1000
commit740805fdb17aa53fb3cf936e706eacf7f1607545 (patch)
tree832e0e3067e75217d11bba384d38054e76cc199f
parent4e7250db129b8f6a54b3e1a69ca1b0711bd9219f (diff)
downloadgo-740805fdb17aa53fb3cf936e706eacf7f1607545.tar.gz
go-740805fdb17aa53fb3cf936e706eacf7f1607545.zip
misc/goplay: another template fix
Fixes #2219. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4950063
-rw-r--r--misc/goplay/goplay.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/goplay/goplay.go b/misc/goplay/goplay.go
index 7f4c45376f..a1eb61795f 100644
--- a/misc/goplay/goplay.go
+++ b/misc/goplay/goplay.go
@@ -145,7 +145,7 @@ func run(cmd ...string) ([]byte, os.Error) {
var frontPage = template.Must(template.New("frontPage").Parse(frontPageText)) // HTML template
var output = template.Must(template.New("output").Parse(outputText)) // HTML template
-var outputText = `<pre>{{html .}}</pre>`
+var outputText = `<pre>{{printf "%s" . |html}}</pre>`
var frontPageText = `<!doctype html>
<html>