[Bug 108] New: std.string wrap is prepending space
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 16 09:02:20 PDT 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=108
Summary: std.string wrap is prepending space
Product: D
Version: 0.150
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: benoit at tionex.de
int main( char[][] aArgs ){
writefln( ".%s.", wrap( "x" ) );
writefln( ".%s.", wrap( "u u" ) );
return 0;
}
makes this output:
. x
.
.u u
.
In the first case, a space is prepended in front of x.
Another questing is, if the newline after the input is correct?
--
More information about the Digitalmars-d-bugs
mailing list