]> Cypherpunks repositories - gostls13.git/commitdiff
godoc: hide "Subdirectories" subheading if it is the only section
authorAndrew Gerrand <adg@golang.org>
Sat, 3 Mar 2012 22:57:09 +0000 (09:57 +1100)
committerAndrew Gerrand <adg@golang.org>
Sat, 3 Mar 2012 22:57:09 +0000 (09:57 +1100)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5731056

lib/godoc/package.html

index 3e8af0fca0f96b63673836b43b601c83677baba8..fdebbf5d9180f4830c7f0566459448f731c51932 100644 (file)
 
 {{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>