Bug 21842 – std.format: "%-+05,g" adds extra comma

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-04-18T10:28:42Z
Last change time
2021-04-24T10:56:00Z
Keywords
pull
Assigned to
No Owner
Creator
Berni44

Comments

Comment #0 by bugzilla — 2021-04-18T10:28:42Z
assert(format!"%-+05,g"(1.0) == "+1 ");
Comment #1 by dlang-bot — 2021-04-24T09:08:42Z
@berni44 created dlang/phobos pull request #8007 "std.format: Make formatting %f (and %g partly) 100% @nogc." fixing this issue: - Fix Issue 21842 - std.format: "%-+05,g" adds extra comma https://github.com/dlang/phobos/pull/8007
Comment #2 by dlang-bot — 2021-04-24T10:56:00Z
dlang/phobos pull request #8007 "std.format: Make formatting %f (and %g partly) 100% @nogc." was merged into master: - 469a427d4d64141b21d6e5513162da923eaca458 by berni44: Fix Issue 21842 - std.format: "%-+05,g" adds extra comma https://github.com/dlang/phobos/pull/8007