[oXygen-user] Not indent elements with 'linefeed-treatment="preserve"'?

Tony Graham
Thu Aug 27 06:30:20 CDT 2015


Is there a way that a framework can make oXygen not reindent elements
that have 'linefeed-treatment="preserve"'?

http://www.oxygenxml.com/doc/versions/17.0/ug-editor/#topics/preferences-editor-format-xml.html
says that elements can be added to the 'Preserve space' list, but
"*[@linefeed-treatment='preserve']" isn't a 'simple node test' and seems
to be being silently ignored.

Even if it did work, it can't be set by the 'focheck' framework.

(Separately, the ability to edit an item in the list, rather than having
to make a new item based on an existing item then deleting the old item,
seems to me to be useful.)

http://www.oxygenxml.com/doc/versions/17.0/ug-editor/#topics/format-and-indent-xml.html
says that it can be done with CSS using 'white-space: pre', but

*[linefeed-treatment=preserve] {
     white-space: pre;
}

is having no effect on Text mode 'Format and Indent Element' results.

(Separately again, is there a key combination to insert a line break
that doesn't also insert indenting white-space?)

Regards,


Tony Graham.
-- 
Senior Architect
XML Division
Antenna House, Inc.
----
Skerries, Ireland



More information about the oXygen-user mailing list