Turn off indent ("pretty print") in oXygen XML Editor 13.2?

Hi group When I create a new DITA topic in oXygen XML Editor 13.2, I see that indent (aka "pretty print") is used when I look at the content in plain text view. Is there a way to turn off indent in the oXygen preferences? I have deselected the following options in Preferences > Editor > Format, but this does not seem to work (the text is still indented in plain text view): * Detect indent on open * Indent on enter * Format and indent the document on open Thanks -- Yves Barbion www.scripto.nu

Hi Yves, Actually when creating new files according to a certain vocabulary, there are file templates which are used to contribute that content. Each document type provides a set of file templates which are then added to the "New" dialog wizard. All the DITA new file templates are located here:
OXYGEN_INSTALL_DIR\frameworks\dita\templates
So you could try to open them all and change their content according to your needs. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 3/29/2012 11:01 AM, Yves Barbion wrote:
Hi group
When I create a new DITA topic in oXygen XML Editor 13.2, I see that indent (aka "pretty print") is used when I look at the content in plain text view. Is there a way to turn off indent in the oXygen preferences? I have deselected the following options in Preferences > Editor > Format, but this does not seem to work (the text is still indented in plain text view): * Detect indent on open * Indent on enter * Format and indent the document on open
Thanks
-- Yves Barbion www.scripto.nu <http://www.scripto.nu>
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

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

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>
participants (2)
-
Oxygen XML Editor Support
-
Yves Barbion