FO indentation/pretty print

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
Franck
Posts: 35
Joined: Fri Jun 03, 2005 11:00 am

FO indentation/pretty print

Post by Franck » Mon Jan 16, 2006 1:30 pm

Another minor but still annoying problem.

It seems that Oxygen is very shy when it comes to pretty printing FO documents, or XSL containg fo: elements. I understand that for some elements, you need to preserve the formatting, but I don't see why my <fo:block/> should not be properly lined up.

Of course, maybe this is a RTFM :-)

Franck
Posts: 35
Joined: Fri Jun 03, 2005 11:00 am

My mistake

Post by Franck » Mon Jan 16, 2006 1:41 pm

Ooops.... I have jsut found a xml:space="preserve" on my main template...
That probably explains it.

Apologies

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Tue Jan 17, 2006 1:57 pm

Hello,

There are two ways to specify the elements in which the Format and Indent (pretty-print) action preserves the whitespace:

- add the element name including the namespace prefix to the Preserve space elements list in Options -> Preferences -> Editor/Format

- add the xml:space="preserve" attribute to the element (stronger than the first method).

Regards,
Sorin

Post Reply