1
0
mirror of https://github.com/golang/go synced 2024-10-04 13:11:22 -06:00
go/src/fmt
Martin Möhrmann 75cc05fa55 fmt: fix formatting of numbers with f.space and f.plus specified
Do not replace the sign in front of a number with a space if both
f.space and f.plus are both specified for number formatting.
This was already the case for integers but not for floats
and complex numbers.

Updates: #14543.

Change-Id: I07ddeb505003db84a8a7d2c743dc19fc427a00bd
Reviewed-on: https://go-review.googlesource.com/19974
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
2016-02-29 00:17:07 +00:00
..
doc.go fmt: clarify reflect.Value printing 2015-10-19 18:29:36 +00:00
export_test.go
fmt_test.go fmt: fix formatting of numbers with f.space and f.plus specified 2016-02-29 00:17:07 +00:00
format.go fmt: fix formatting of numbers with f.space and f.plus specified 2016-02-29 00:17:07 +00:00
print.go fmt: simplify buffer write methods and adjust calls to them 2016-02-27 21:12:19 +00:00
scan_test.go fmt: use public io.RuneScanner interface for ScanState reader 2016-02-26 23:46:51 +00:00
scan.go fmt: simplify buffer write methods and adjust calls to them 2016-02-27 21:12:19 +00:00
stringer_test.go