Bug 23298 – std.string wrap wraps early

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2022-08-19T18:10:30Z
Last change time
2022-08-22T08:53:43Z
Keywords
pull
Assigned to
No Owner
Creator
Bastiaan Veelo

Comments

Comment #0 by Bastiaan — 2022-08-19T18:10:30Z
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