From f72c7f764272a1bb2b1700c198bf9edbc7fbb240 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Tue, 23 Dec 2014 18:02:05 -0500 Subject: [PATCH] cmd/godoc: show the BUG section This will match the default behavior when running locally. In fact, our http://blog.golang.org/godoc-documenting-go-code explicitly documents this feature (see also golang.org/cl/1953). Change-Id: I581b17b60229ce70900cb51d548d1e2a34df41ba Signed-off-by: Shenghou Ma Reviewed-on: https://go-review.googlesource.com/2116 Reviewed-by: Andrew Gerrand --- cmd/godoc/appinit.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/godoc/appinit.go b/cmd/godoc/appinit.go index d91c84fe..ad95b213 100644 --- a/cmd/godoc/appinit.go +++ b/cmd/godoc/appinit.go @@ -13,6 +13,7 @@ import ( "archive/zip" "log" "path" + "regexp" "golang.org/x/tools/godoc" "golang.org/x/tools/godoc/static" @@ -56,6 +57,7 @@ func init() { pres.ShowPlayground = true pres.ShowExamples = true pres.DeclLinks = true + pres.NotesRx = regexp.MustCompile("BUG") readTemplates(pres, true) registerHandlers(pres)