1
0
mirror of https://github.com/golang/go synced 2024-11-11 23:20:24 -07:00

godoc: don't display navigation list with only 1 element

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4547056
This commit is contained in:
Andrew Gerrand 2011-05-20 14:26:00 +10:00
parent b790ae2efb
commit b9f9087605

View File

@ -104,7 +104,7 @@ function godocs_generateTOC() {
}
}
if (!toc_items.length) { return; }
if (toc_items.length <= 1) { return; }
var dl1 = document.createElement('dl');
var dl2 = document.createElement('dl');