Commit 1e5aecf6 authored by Volker Dobler's avatar Volker Dobler Committed by Andrew Gerrand

godoc: improved output of examples in html.

Fixes #2467.
Fixes #2464.

R=golang-dev, rsc, adg
CC=golang-dev
https://golang.org/cl/5447051
parent 15a3a5cf
...@@ -3,9 +3,12 @@ ...@@ -3,9 +3,12 @@
<p class="exampleHeading">▹ Example</p> <p class="exampleHeading">▹ Example</p>
</div> </div>
<div class="expanded"> <div class="expanded">
<p class="exampleHeading">▾ Example Code:</p> <p class="exampleHeading">▾ Example</p>
<p>Code:</p>
<p class="code"><pre>{{.Code}}</pre></p> <p class="code"><pre>{{.Code}}</pre></p>
{{if .Output}}
<p>Output:</p> <p>Output:</p>
<p class="output"><pre>{{html .Output}}</pre></p> <p class="output"><pre>{{html .Output}}</pre></p>
{{end}}
</div> </div>
</div> </div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment