]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.r60] misc/goplay: Fix template output
authorAndrew Gerrand <adg@golang.org>
Tue, 13 Sep 2011 04:43:18 +0000 (14:43 +1000)
committerAndrew Gerrand <adg@golang.org>
Tue, 13 Sep 2011 04:43:18 +0000 (14:43 +1000)
««« CL 4960052 / da491846e511
misc/goplay: Fix template output

Fixes #2219.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4960052
»»»

R=dsymonds
CC=golang-dev
https://golang.org/cl/4960067

misc/goplay/goplay.go

index bbc388ba4cfb09d0726888a7348a83e81319f4f4..7f4c45376f86713fe1b541f06b55f3d6c7b3b8f9 100644 (file)
@@ -256,7 +256,7 @@ function compileUpdate() {
 </head>
 <body>
 <table width="100%"><tr><td width="60%" valign="top">
-<textarea autofocus="true" id="edit" spellcheck="false" onkeydown="keyHandler(event);" onkeyup="autocompile();">{{html .}}</textarea>
+<textarea autofocus="true" id="edit" spellcheck="false" onkeydown="keyHandler(event);" onkeyup="autocompile();">{{printf "%s" . |html}}</textarea>
 <div class="hints">
 (Shift-Enter to compile and run.)&nbsp;&nbsp;&nbsp;&nbsp;
 <input type="checkbox" id="autocompile" value="checked" /> Compile and run after each keystroke