D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23298 - std.string wrap wraps early
Summary: std.string wrap wraps early
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2022-08-19 18:10 UTC by Bastiaan Veelo
Modified: 2022-08-22 08:53 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 Bastiaan Veelo 2022-08-19 18:10:30 UTC
Something strange is going on here:

```d
import std;
void main()
{
    writeln("1 2 3 4 5 6 7 8 9".wrap(17));  // Two lines, should be one
    writeln("1 2 3 4 5 6 7 8 9 ".wrap(17)); // One line
}
```

Version 2.099.
Comment 1 Dlang Bot 2022-08-20 09:00:23 UTC
@wolframw created dlang/phobos pull request #8543 "Fix issue 23298 - std.string wrap wraps early" fixing this issue:

- Fix issue 23298 - std.string wrap wraps early

https://github.com/dlang/phobos/pull/8543
Comment 2 Dlang Bot 2022-08-22 08:53:43 UTC
dlang/phobos pull request #8543 "Fix issue 23298 - std.string wrap wraps early" was merged into master:

- 82efd51dcc51d2afcde36d7e3b386d6c25b7aaa6 by wolframw:
  Fix issue 23298 - std.string wrap wraps early

https://github.com/dlang/phobos/pull/8543