1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:24:41 -07:00
go/lib/godoc/example.html
Olivier Duperray e97a55810f godoc: <pre> must not occur inside <p>
Fixes #2532

R=golang-dev, dr.volker.dobler, rsc
CC=golang-dev
https://golang.org/cl/5450115
2011-12-07 15:00:38 -05:00

15 lines
322 B
HTML

<div class="example">
<div class="collapsed">
<p class="exampleHeading">▹ Example</p>
</div>
<div class="expanded">
<p class="exampleHeading">▾ Example</p>
<p>Code:</p>
<pre class="code">{{.Code}}</pre>
{{if .Output}}
<p>Output:</p>
<pre class="output">{{html .Output}}</pre>
{{end}}
</div>
</div>