mirror of
https://github.com/golang/go.git
synced 2025-05-05 07:33:00 +00:00
godoc: remove leading tabs while formatting text
Fixes golang/go#29568 Change-Id: Ia9e91bb4cf7a5916696268141ef5ec29e4372130 Reviewed-on: https://go-review.googlesource.com/c/160917 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
b2f7fe607d
commit
7f7074d5bc
@ -359,7 +359,7 @@ func FormatText(w io.Writer, text []byte, line int, goSource bool, pattern strin
|
||||
if line >= 0 {
|
||||
lineTag = func(w io.Writer, _ int, start bool) {
|
||||
if start {
|
||||
fmt.Fprintf(w, "<span id=\"L%d\" class=\"ln\">%6d</span>\t", line, line)
|
||||
fmt.Fprintf(w, "<span id=\"L%d\" class=\"ln\">%6d</span>", line, line)
|
||||
line++
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user