diff --git a/godoc/server.go b/godoc/server.go
index 18f110a3..294610ed 100644
--- a/godoc/server.go
+++ b/godoc/server.go
@@ -594,7 +594,7 @@ func formatGoSource(buf *bytes.Buffer, text []byte, links []analysis.Link, patte
// linkWriter, so we have to add line spans as another pass.
n := 1
for _, line := range bytes.Split(buf.Bytes(), []byte("\n")) {
- fmt.Fprintf(saved, "%6d\t", n, n)
+ fmt.Fprintf(saved, "%6d\t", n, n)
n++
saved.Write(line)
saved.WriteByte('\n')
diff --git a/godoc/static/static.go b/godoc/static/static.go
index 70a4d931..a47a7fd0 100644
--- a/godoc/static/static.go
+++ b/godoc/static/static.go
@@ -2873,6 +2873,7 @@ pre .selection-comment {
}
pre .ln {
color: #999;
+ background: #efefef;
}
.ln {
-webkit-user-select: none;
diff --git a/godoc/static/style.css b/godoc/static/style.css
index 78c539e9..025327b8 100644
--- a/godoc/static/style.css
+++ b/godoc/static/style.css
@@ -29,6 +29,7 @@ pre .selection-comment {
}
pre .ln {
color: #999;
+ background: #efefef;
}
.ln {
-webkit-user-select: none;