[jdom-interest] XMLOutputer b5 seems to output differently than B4

Alex Chaffee guru at edamame.stinky.com
Sat Oct 14 12:15:31 PDT 2000

> >B5 uses "\r\n" as the default line seperator, which leads to ugly
> >formatting, well, on my Windows box anyway.
> Hmmm.  It prolly ought to use System.getProperty.

I agree, but we hashed this out a few months ago, and Elliotte and
'platform-independent output' won.  See the Javadoc for

> For portability:
> outputter.setLineSeparator(System.getProperty("line.separator"));

I've added this note to the Javadoc in my latest patch.  Thanks for
the reminder.

 - A

Alex Chaffee                       mailto:alex at jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

More information about the jdom-interest mailing list