]> Cypherpunks repositories - gostls13.git/commitdiff
effective go: fix erroneous quoting of ampersands that cropped up
authorRob Pike <r@golang.org>
Tue, 23 Aug 2011 03:54:29 +0000 (13:54 +1000)
committerRob Pike <r@golang.org>
Tue, 23 Aug 2011 03:54:29 +0000 (13:54 +1000)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4937047

doc/effective_go.html
doc/effective_go.tmpl
doc/progs/eff_qr.go

index 5f27284aaf8e178f506842ac5d0137bc7698354f..6adf7e55588c6fe7dc2ac9a709bb6b7a702d9c69 100644 (file)
@@ -2954,8 +2954,7 @@ const templateStr = `
 &lt;/head&gt;
 &lt;body&gt;
 {{if .}}
-&lt;img src=&#34;http://chart.apis.google.com/chart?chs=300x300&amp;amp;cht=qr&amp;amp;choe=UTF-8&amp;amp;chl={{urlquery .}}&#34;
-/&gt;
+&lt;img src=&#34;http://chart.apis.google.com/chart?chs=300x300&amp;cht=qr&amp;choe=UTF-8&amp;chl={{urlquery .}}&#34; /&gt;
 &lt;br&gt;
 {{html .}}
 &lt;br&gt;
@@ -2994,7 +2993,7 @@ from data items passed to <code>templ.Execute</code>, in this case the
 form value.  
 Within the template text (<code>templateStr</code>),
 double-brace-delimited pieces denote template actions.
-The piece from the <code>{{if .}}</code>
+The piece from <code>{{if .}}</code>
 to <code>{{end}}</code> executes only if the value of the current data item, called <code>.</code> (dot),
 is non-empty.
 That is, when the string is empty, this piece of the template is suppressed.
index 660789482039beb695be6d513d71618d56d1c046..46d774ad4ef5278715865e02315f6a4676dd3c7d 100644 (file)
@@ -2884,7 +2884,7 @@ from data items passed to <code>templ.Execute</code>, in this case the
 form value.  
 Within the template text (<code>templateStr</code>),
 double-brace-delimited pieces denote template actions.
-The piece from the <code>{{html "{{if .}}"}}</code>
+The piece from <code>{{html "{{if .}}"}}</code>
 to <code>{{html "{{end}}"}}</code> executes only if the value of the current data item, called <code>.</code> (dot),
 is non-empty.
 That is, when the string is empty, this piece of the template is suppressed.
index fc92bd0efa0d015202940d9e66c7f12f2b204222..5d1fd38e06ba0f77a27d10bde30ecb95fb066200 100644 (file)
@@ -31,8 +31,7 @@ const templateStr = `
 </head>
 <body>
 {{if .}}
-<img src="http://chart.apis.google.com/chart?chs=300x300&amp;cht=qr&amp;choe=UTF-8&amp;chl={{urlquery .}}"
-/>
+<img src="http://chart.apis.google.com/chart?chs=300x300&cht=qr&choe=UTF-8&chl={{urlquery .}}" />
 <br>
 {{html .}}
 <br>