]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] doc: don't wrap package names in directory listing
authorAndrew Gerrand <adg@golang.org>
Fri, 20 Apr 2012 14:04:13 +0000 (10:04 -0400)
committerAndrew Gerrand <adg@golang.org>
Fri, 20 Apr 2012 14:04:13 +0000 (10:04 -0400)
««« 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
»»»

doc/style.css
lib/godoc/package.html

index 95be3a17a46da9738571804ae313277dfb2fa9ea..7f3384c6c2bff32a318e337592d3cb886640e913 100644 (file)
@@ -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; }
-
index 41677a69dd74cc6ed52cef15d46f2b5ba83c41dc..5b7fce8d70bb6553d2e03558b110175f12a0bf91 100644 (file)
                {{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>