[jdom-interest] setIgnoringElementContentWhitespace inoperant
?
Elliotte Harold
elharo at metalab.unc.edu
Thu Dec 9 10:40:51 PST 2004
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.
--
Elliotte Rusty Harold elharo at metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
More information about the jdom-interest
mailing list