diff options
author | Andrew Gerrand <adg@golang.org> | 2012-04-20 10:04:13 -0400 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2012-04-20 10:04:13 -0400 |
commit | 802ac98ffc5415c693a392bb1c2b3a693765bdd2 (patch) | |
tree | bf1932cd591190199eaee780bb61bb77ed5ef106 | |
parent | 554316495f0507d68583bb2b54f9b03777a5ed0c (diff) | |
download | go-802ac98ffc5415c693a392bb1c2b3a693765bdd2.tar.gz go-802ac98ffc5415c693a392bb1c2b3a693765bdd2.zip |
[release-branch.go1] doc: don't wrap package names in directory listing
««« backport f4f63fb397c6
doc: don't wrap package names in directory listing
Fixes #3522.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6063054
»»»
-rw-r--r-- | doc/style.css | 5 | ||||
-rw-r--r-- | lib/godoc/package.html | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/style.css b/doc/style.css index 95be3a17a4..7f3384c6c2 100644 --- a/doc/style.css +++ b/doc/style.css @@ -108,7 +108,9 @@ table.dir td { word-wrap: break-word; vertical-align: top; } - +div#page.wide table.dir td.name { + white-space: nowrap; +} .alert { color: #AA0000; } @@ -388,4 +390,3 @@ img.gopher { margin-bottom: -120px; } h2 { clear: right; } - diff --git a/lib/godoc/package.html b/lib/godoc/package.html index 41677a69dd..5b7fce8d70 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -192,14 +192,14 @@ {{if $.DirFlat}} {{if .HasPkg}} <tr> - <td><a href="{{html .Path}}">{{html .Path}}</a></td> + <td class="name"><a href="{{html .Path}}">{{html .Path}}</a></td> <td> </td> <td style="width: auto">{{html .Synopsis}}</td> </tr> {{end}} {{else}} <tr> - <td>{{repeat ` ` .Depth}}<a href="{{html .Path}}">{{html .Name}}</a></td> + <td class="name">{{repeat ` ` .Depth}}<a href="{{html .Path}}">{{html .Name}}</a></td> <td> </td> <td style="width: auto">{{html .Synopsis}}</td> </tr> |