Page 1 of 1

FO indentation/pretty print

Posted: Mon Jan 16, 2006 1:30 pm
by Franck
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 :-)

My mistake

Posted: Mon Jan 16, 2006 1:41 pm
by Franck
Ooops.... I have jsut found a xml:space="preserve" on my main template...
That probably explains it.

Apologies

Posted: Tue Jan 17, 2006 1:57 pm
by sorin_ristache
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