Hello, Henri. The WordUtils seems to provide the functionality, but... (again, this but ;) it addresses a bit different problem. Imagine you have an input String with newlines already inserted. Then, after running WordUtils over it, you'll have extra newlines inserted. Then how do you know where the actual line end is. One way would be to strip away newlines from input string before processing, but then, if you really wanted to keep the formatting (e.g. preformatted e-mail). This could lead to more overloaded methods with myriads of flags.
The submission in question addressed a common need while converting a legacy application (particularly, when long report descriptions had to be exported to excel workbooks with more or less fixed columns to fit on paper). With certain assumptions WordUtils could work, but it would require more scaffolding code. And we all know we have commons-lang to handle all that 'extra' code ;) Regards, Andrew On Fri, 10 Sep 2004 11:39:29 -0400, Henri Yandell <[EMAIL PROTECTED]> wrote: > How about the wrap methods in WordUtils? Does this have any advantage over them? > > Hen > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
