summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2012-03-04 09:57:09 +1100
committerAndrew Gerrand <adg@golang.org>2012-03-04 09:57:09 +1100
commit4314087b625b52f907424d54461b464bc45d23ec (patch)
treebec73a93c9b8be595810b0be038f9b8b0c4c793f /lib
parent227a04d771c98f858663b56bd1bc10640097751d (diff)
downloadgo-git-4314087b625b52f907424d54461b464bc45d23ec.tar.gz
godoc: hide "Subdirectories" subheading if it is the only section
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5731056
Diffstat (limited to 'lib')
-rw-r--r--lib/godoc/package.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/godoc/package.html b/lib/godoc/package.html
index 3e8af0fca0..fdebbf5d91 100644
--- a/lib/godoc/package.html
+++ b/lib/godoc/package.html
@@ -163,7 +163,7 @@
{{with .Dirs}}
{{/* DirList entries are numbers and strings - no need for FSet */}}
- <h2 id="subdirectories">Subdirectories</h2>
+ {{if $.PDoc}}<h2 id="subdirectories">Subdirectories</h2>{{end}}
<table class="dir">
<tr>
<th>Name</th>