[jdom-interest] XHTML issues

Jason Hunter jhunter at servlets.com
Wed Aug 13 10:32:54 PDT 2003


Elliotte Rusty Harold wrote:

> At 11:21 PM +0100 7/25/03, Rachel Greenham wrote:
> 
> 
>> The other issue I had by the way was that EntityRefs are being printed 
>> out with surrounding newlines if newlines is true on the XMLOutputter. 
>> This has the effect that they get surrounded by a visible space when 
>> displayed in a browser. When you're using entities for quote marks, 
>> apostrophes, and accented letters (most of the time in fact) this is 
>> obviously not wanted. However, setting the XMLOutputter to not 
>> generate newlines makes the source very unpleasant and difficult to 
>> look at manually (eg: a 30,000 word story crushed to 66 logical lines, 
>> most of those in a <pre> block, for instance).
> 
> Hmm, that really sounds like a bug. Entity references should not be 
> surrounded by newlines even when indenting for the reasons you cite. Has 
> anyone fixed this yet? If not, I could give it a shot.

No one's patched a bug like this, and I'd welcome you doing so.  One 
thought is to first make sure it's not whitespace being added for other 
reasons.

-jh-





More information about the jdom-interest mailing list