aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2012-04-20 10:04:13 -0400
committerAndrew Gerrand <adg@golang.org>2012-04-20 10:04:13 -0400
commit802ac98ffc5415c693a392bb1c2b3a693765bdd2 (patch)
treebf1932cd591190199eaee780bb61bb77ed5ef106
parent554316495f0507d68583bb2b54f9b03777a5ed0c (diff)
downloadgo-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.css5
-rw-r--r--lib/godoc/package.html4
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>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td style="width: auto">{{html .Synopsis}}</td>
</tr>
{{end}}
{{else}}
<tr>
- <td>{{repeat `&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;` .Depth}}<a href="{{html .Path}}">{{html .Name}}</a></td>
+ <td class="name">{{repeat `&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;` .Depth}}<a href="{{html .Path}}">{{html .Name}}</a></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td style="width: auto">{{html .Synopsis}}</td>
</tr>