Excessive whitespace in author mode view

Having trouble installing Oxygen? Got a bug to report? Post it all here.
martindholmes
Posts: 178
Joined: Wed Apr 20, 2005 5:43 pm
Location: Victoria, BC, Canada

Excessive whitespace in author mode view

Post by martindholmes »

Hi there,

When writing CSS for author mode, I'm specifying

Code: Select all

*{
  white-space: normal;
}
and also specifying the same thing on various elements, but I'm still seeing all whitespace in the author-mode rendering, which means that documents with pretty-print layout in text view look very weird in author mode. How do I suppress whitespace in the author view?
Radu
Posts: 9154
Joined: Fri Jul 09, 2004 5:18 pm

Re: Excessive whitespace in author mode view

Post by Radu »

Hello Martin,

By default all elements are considered white-space:normal unless you specify otherwise in the CSS.
So by default Oxygen should show elements with normalized whitespaces in the Author visual editing mode unless:
- The element has defined in the associated schema/DTD an xml:space attribute with the fixed value "preserve". Or it has an ancestor with the same default attribute value defined in the schema.
- The element has an xml:space=preserve attribute set on it or on an ancestor element.
- The Preferences->"Editor / Format / XML" page has a "Preserve space" list which contains elements matching your XML element or an ancestor of your element.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply