From 89fd4dd766780214ebe7b3074da0c58d2565281d Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 22 Feb 2012 09:25:56 +1100 Subject: [PATCH] godoc: support flat directory view again R=bradfitz CC=golang-dev https://golang.org/cl/5690058 --- lib/godoc/package.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/godoc/package.html b/lib/godoc/package.html index 841ad8df0fd..01043b05f29 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -168,7 +168,11 @@ {{range .List}} - {{repeat `     ` .Depth}}{{html .Name}} + {{if $.DirFlat}} + {{html .Path}} + {{else}} + {{repeat `     ` .Depth}}{{html .Name}} + {{end}}      {{html .Synopsis}}