D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21842 - std.format: "%-+05,g" adds extra comma
Summary: std.format: "%-+05,g" adds extra comma
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2021-04-18 10:28 UTC by Berni44
Modified: 2021-04-24 10:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Berni44 2021-04-18 10:28:42 UTC
assert(format!"%-+05,g"(1.0) == "+1   ");
Comment 1 Dlang Bot 2021-04-24 09:08:42 UTC
@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 Dlang Bot 2021-04-24 10:56:00 UTC
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