From 1e5aecf6ce72fa16f9e834702d083325646108b7 Mon Sep 17 00:00:00 2001 From: Volker Dobler Date: Fri, 2 Dec 2011 09:52:31 +1100 Subject: [PATCH] godoc: improved output of examples in html. Fixes #2467. Fixes #2464. R=golang-dev, rsc, adg CC=golang-dev https://golang.org/cl/5447051 --- lib/godoc/example.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/godoc/example.html b/lib/godoc/example.html index 8c1fd1adc63..7badbb6fad5 100644 --- a/lib/godoc/example.html +++ b/lib/godoc/example.html @@ -3,9 +3,12 @@

▹ Example

-

▾ Example Code:

+

▾ Example

+

Code:

{{.Code}}

+ {{if .Output}}

Output:

{{html .Output}}

+ {{end}}