[jdom-interest] Feature Request: I want my padText back
Elliotte Rusty Harold
elharo at metalab.unc.edu
Sun Jun 17 14:51:03 PDT 2001
At 8:38 AM -0700 6/17/01, guru at stinky.com wrote:
>I have a document type that contains HTML snippets inside an XML
>element, viz.:
>
><name>Jason Hunter</name>
><description>
>Jason Hunter is a <b>great</b> guy,
>and he <i>loves to eat cheese</i>.
></description>
>
>
>If a servlet wants to output the description field using
>setTextNormalize, then it comes out
>
Patient: Doctor, my arms hurts when I do this.
Doctor: Don't do that.
You specifically asked for the white space to be thrown away by
calling setTextNormalize(). If you don't want the white space thrown
away, don't call setTextNormalize(). Throwing away white space is the
whole reason that method exists at all.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| The XML Bible (IDG Books, 1999) |
| http://metalab.unc.edu/xml/books/bible/ |
| http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://metalab.unc.edu/javafaq/ |
| Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/ |
+----------------------------------+---------------------------------+
More information about the jdom-interest
mailing list