1
0
mirror of https://github.com/golang/go synced 2024-11-18 09:04:49 -07:00

cmd/present: fix displaying line numbers for .code and .play

Line numbers match line numbers from the included file,
not the lines in the segment selected by the
.code or .play START/STOP regexps.

Fixes golang/go#5248

Change-Id: I374e7b665e98db5032446ae49e6fae00d9d2b975
Reviewed-on: https://go-review.googlesource.com/20311
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Konstantin Shaposhnikov 2016-03-08 00:12:11 +08:00 committed by Andrew Gerrand
parent 1074774aec
commit 53f5cdeed1

View File

@ -372,6 +372,12 @@ pre {
color: black;
}
pre.numbers span:before {
content: attr(num);
margin-right: 1em;
display: inline-block;
}
code {
font-size: 95%;
font-family: 'Droid Sans Mono', 'Courier New', monospace;