From: Andrew Gerrand Date: Tue, 13 Sep 2011 04:45:37 +0000 (+1000) Subject: [release-branch.r60] misc/goplay: another template fix X-Git-Tag: release.r60.1~5 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8b8e079462552003d5958c5ea8fdde6bc25e9408;p=gostls13.git [release-branch.r60] misc/goplay: another template fix ««« CL 4950063 / 775543b0795c misc/goplay: another template fix Fixes #2219. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4950063 »»» R=dsymonds CC=golang-dev https://golang.org/cl/5000041 --- 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 = `
{{html .}}
` +var outputText = `
{{printf "%s" . |html}}
` var frontPageText = `