[oXygen-user] Turn off indent ("pretty print") in oXygen XML Editor 13.2?

Oxygen XML Editor Support support at oxygenxml.com
Thu Mar 29 06:46:11 CDT 2012


Hi Yves,

You have two options to instruct Oxygen not to format and indent when 
you make modifications.

1) Go to the Oxygen Preferences->"Editor / Format / XML" page where you 
will find a list of "Preserve space elements". Add to that list the DITA 
root elements like "topic", "concept", "task"...

2) Open the CSS file:

> OXYGEN_INSTALL_DIR/frameworks/dita/css_classed/dita.css

and add in it a CSS selector like:

> *{
>     white-space:pre-wrap;
> }

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 3/29/2012 2:13 PM, Yves Barbion wrote:
> Hi Radu
>
> I open one of the task templates in
> OXYGEN_INSTALL_DIR\frameworks\dita\templates and, when I look at the
> topic in plain text view, I see this:
>
> </step>
> <step>
> <cmd/>
> </step>
> </steps>
>
> I remove the spaces before <step> and <cmd/> and I save and close the
> template.
>
> When I create a new topic based on this template, and then add some new
> content, for example some extra steps, I see that these extra steps
> again get indented when I look at them in plain text view:
>
> </step>
> <step>
> <cmd/>
> </step>
> </steps>
>
> This is not what I want. I'd like to see:
>
> </step>
> <step>
> <cmd/>
> </step>
> </steps>
>
> Isn't there a way to change this in one of the oXygen preferences?
>
> Kind regards
>
>
>
> --
> Yves Barbion
> www.scripto.nu <http://www.scripto.nu>


More information about the oXygen-user mailing list