From f8dde60e2b70f6edccfec63980ef7e2b59fe9652 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Fri, 20 Apr 2012 10:04:13 -0400 Subject: [PATCH] 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 | 5 +++-- 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}} - {{html .Path}} + {{html .Path}}      {{html .Synopsis}} {{end}} {{else}} - {{repeat `     ` .Depth}}{{html .Name}} + {{repeat `     ` .Depth}}{{html .Name}}      {{html .Synopsis}} -- 2.48.1