[jdom-interest] setIgnoringElementContentWhitespace inoperant ?

Ken Roberts ken at 9ci.com
Thu Dec 9 10:49:41 PST 2004


On Thu, 2004-12-09 at 12:40, Elliotte Harold wrote:

> Ken Roberts wrote:
> 
> 
> > What something like this should do is convert an infinite amount of 
> > whitespace in a single instance into a single space. 
> 
> The effects of this are quite negative in many, many cases. For instance 
> consider a DocBook programlisting element or an XHTML pre element that 
> contains a carefully formatted Python program. Or consider <b>some</b>
> <i>text</i> <em>like</em> <b>this</b>. That algorithm loses the spaces 
> between words. If there's white space mixed in with text content, it's 
> safer to just leave it alone.


I thought that was why this would be an option rather than default
behavior?  If you might be reading such a thing then this property would
not be set, but if you have no such constraints and want dense output it
would be a desirable feature.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20041209/8137dd6d/attachment.htm


More information about the jdom-interest mailing list