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 by dlang-bot — 2022-08-20T09:00:23Z
@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 by dlang-bot — 2022-08-22T08:53:43Z
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