[jdom-interest] non-breakable space
Tatu Saloranta
cowtowncoder at yahoo.com
Tue Dec 2 17:01:03 PST 2008
--- On Tue, 12/2/08, Jabba Laci <jabba.laci at gmail.com> wrote:
> From: Jabba Laci <jabba.laci at gmail.com>
> Subject: [jdom-interest] non-breakable space
> To: "jdom" <jdom-interest at jdom.org>
> Date: Tuesday, December 2, 2008, 4:31 PM
> Hi,
>
> I'd like to produce the following XHTML output:
>
> <xforms:label>Address: </xforms:label>
>
> How to prevent that JDOM changes & to & ?
You don't. Just stick the non-breaking space character itself in content, and JDOM will escape it properly. Code for the character is 160, so in Java string constant it'd be something like "Address:\u00A0".
Hope this helps,
-+ Tatu +-
More information about the jdom-interest
mailing list