Re: non-breakable space
Tatu Saloranta <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
--- On Tue, 12/2/08, Jabba Laci <[email protected]> wrote: > From: Jabba Laci <[email protected]> > Subject: [jdom-interest] non-breakable space > To: "jdom" <[email protected]> > 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 +- _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]