mirror of
https://github.com/golang/go
synced 2024-11-13 17:40:23 -07:00
flag: use four spaces before tab, not three
Four spaces is what works well for both 4- and 8-space tab stops. Screen with fixed-width font and 4-space tab stops: http://imgur.com/lps5Lbb Change-Id: I7d2b813d674c3e0a68f79d63bc5d5ec5bd4f87bb Reviewed-on: https://go-review.googlesource.com/7503 Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
363617c7d3
commit
d022266a9a
@ -441,7 +441,7 @@ func (f *FlagSet) PrintDefaults() {
|
||||
if len(s) <= 4 { // space, space, '-', 'x'.
|
||||
s += "\t"
|
||||
} else {
|
||||
// Three spaces before the tab triggers good alignment
|
||||
// Four spaces before the tab triggers good alignment
|
||||
// for both 4- and 8-space tab stops.
|
||||
s += "\n \t"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user