Bug 20357 – format should obey space flag when printing nan or inf

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-11-05T13:05:53Z
Last change time
2019-11-06T10:17:04Z
Keywords
pull
Assigned to
No Owner
Creator
berni44

Comments

Comment #0 by bugzilla — 2019-11-05T13:05:53Z
format("^%- 13,3.2f$", double.nan); should be ^ nan $ is ^nan $ Same for inf.
Comment #1 by dlang-bot — 2019-11-05T13:16:55Z
@berni44 created dlang/phobos pull request #7263 "Fix Issue 20357 - format should obey space flag when printing nan or inf" fixing this issue: - Fix Issue 20357 - format should obey space flag when printing nan or inf https://github.com/dlang/phobos/pull/7263
Comment #2 by dlang-bot — 2019-11-06T10:17:04Z
dlang/phobos pull request #7263 "Fix Issue 20357 - format should obey space flag when printing nan or inf" was merged into master: - ea3d45e4c97954109c4aac6f52aaa7a9de95afdf by Bernhard Seckinger: Fix Issue 20357 - format should obey space flag when printing nan or inf https://github.com/dlang/phobos/pull/7263