Pretty Printing

View: New views
2 Messages — Rating Filter:   Alert me  

Pretty Printing

by Jan Brauer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm using Format.getPrettyFormat() for pretty printing my generated XML.
I'd like to have each element separated with an empty line for better
readability. Does Format have an option that allows this behaviour?

Thx,
Jan
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@...

Re: Pretty Printing

by Mattias Jiderhamn-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you tried something like
Format.getPrettyFormat().setLineSeparator("\r\n\r\n"); ...?

 /Mattias

Jan Brauer wrote (2007-12-10 11:28):
> Hi,
>
> I'm using Format.getPrettyFormat() for pretty printing my generated XML.
> I'd like to have each element separated with an empty line for better
> readability. Does Format have an option that allows this behaviour?
>
> Thx,
> Jan
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@...
LightInTheBox - Buy quality products at wholesale price