Page 1 of 1

Excessive whitespace in author mode view

Posted: Mon Jun 12, 2023 9:16 pm
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?

Re: Excessive whitespace in author mode view

Posted: Tue Jun 13, 2023 7:30 am
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