www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 108] New: std.string wrap is prepending space

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: benoit 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?


-- 
Apr 16 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=108


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed 0.158


-- 
May 25 2006