commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29692] New: - String indentation feature request
Date Sat, 19 Jun 2004 21:14:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29692>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29692

String indentation feature request

           Summary: String indentation feature request
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: mdang@interwoven.com


It would be nice to have a StringUtils.indentBlock(int size) method which go 
through a multi-line string and indent each line by size spaces, and/or a more 
general form of this.

This helps greatly on nested toString() formatting.  Such as a high level 
component spit out its toString() while calling StringUtils.join() to include 
its subcomponents' toString(), but you want to indent the subcomponent's string 
in a nested way.  Well, to push this idea further, we may want a self format a 
object's toString form as a nice indented XML string.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message