[oXygen-user] formating and indenting "long" elements

George Cristian Bina
Thu Dec 21 10:07:03 CST 2006


Hi Chris,

As it appears you have mixed content and one element inside that, the 
element is formated inline by oXygen and it is split on a couple of 
lines due to the line width constraint on formatting. If you want to 
keep the element on a single line then add it to the preserve space 
elements list or add inside olink an xml:space="preserve" attribute. 
Note that the tag will be still formated inline but it will not appear 
on multiple lines.
If you need to have olink formatted as in your example the only solution 
is to preserve the space on the parent and format it yourself as you 
desire, oXygen formatting will not touch that.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Chris Chiasson wrote:
> Sometimes, when using the format + indent element on a <para>, oXygen
> will indent the XML as follows:
> 
> blah blah blah <olink targetdoc="self"
> targetptr="Engineering_Optimization_Main_Code"
> /> blah blah blah blah blah blah blah blah blah
> 
> I'd prefer:
> 
> blah blah blah
> <olink targetdoc="self" targetptr="Engineering_Optimization_Main_Code"/>
> blah blah blah blah blah blah blah blah blah
> 
> Is it possible to instruct oXygen to do what I prefer?
> 




More information about the oXygen-user mailing list