[jdom-interest] Deprecating some XMLOutputter constructors

Jason Hunter jhunter at collab.net
Tue Jun 19 15:26:29 PDT 2001

guru at stinky.com wrote:
> I'm not quite sure why trimText got replaced with textNormalize, since
> merely stripping whitespace immediately after the start tag is less
> expensive computationally, and possibly more useful overall, since it
> allows you to preserve things like <pre> blocks where internal
> whitespace is significant, but surrounding whitespace is not.

setTrimText() in beta6 was doing normalization.  The behavior's the
same, only the name has changed to be more accurate.  There may be
occasion where normalization is too much and trimming is what's desired,
but I suspect it's rare.  Case in point:

  This is text and it continues
  onto the next line

Trimming and adding new lines will not pretty print this.


More information about the jdom-interest mailing list