You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/06/19 23:14:26 UTC
DO NOT REPLY [Bug 29692] New: -
String indentation feature request
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