Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3645

Show
Ignore:
Timestamp:
06/19/08 18:49:30 (2 months ago)
Author:
kris
Message:

adjusted formatting for array output

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/text/convert/Layout.d

    r3591 r3645  
    421421                                   auto tiStat = cast(TypeInfo_StaticArray)_ti; 
    422422                                   auto p = _arg; 
    423                                    length += sink ("[ "); 
     423                                   length += sink ("["); 
    424424                                   for (int i = 0; i < tiStat.len; i++) 
    425425                                       { 
     
    429429                                       p += tiStat.tsize/tiStat.len; 
    430430                                       } 
    431                                    length += sink (" ]"); 
     431                                   length += sink ("]"); 
    432432                                   } 
    433433                                else  
     
    443443                                   auto aa = *cast(AV[AK]*) _arg; 
    444444 
    445                                    length += sink ("{ "); 
     445                                   length += sink ("{"); 
    446446                                   bool first = true; 
    447447                                   
     
    461461                                                length += sink (", "); 
    462462                                           processElement (tiKey, pk); 
    463                                            length += sink ("=>"); 
     463                                           length += sink (" => "); 
    464464                                           processElement (tiVal, pv); 
    465465                                           first = false; 
    466466                                           } 
    467                                    length += sink (" }"); 
     467                                   length += sink ("}"); 
    468468                                   } 
    469469                                else  
     
    479479                                   auto elTi = _ti.next(); 
    480480                                   auto size = elTi.tsize(); 
    481                                    length += sink ("[ "); 
     481                                   length += sink ("["); 
    482482                                   while (len > 0) 
    483483                                         { 
     
    488488                                         ptr += size; 
    489489                                         } 
    490                                    length += sink (" ]"); 
     490                                   length += sink ("]"); 
    491491                                   } 
    492492                                else