enable-experiment/render-all-whitespace

Type: Boolean

Deprecated!

This configuration value will be removed in a future release, after which Fonto will always display any whitespace present in the document. We recommend normalizing unwanted whitespace at the CMS level by removing any leading and trailing whitespace in element content and collapsing sequences of whitespace characters to a single space. Fonto will apply the same normalization to any element that is edited, to prevent such unwanted whitespace from being inserted.

For elements where all whitespace must be preserved, make sure the schema includes a default value of "preserve" for the xml:space attribute or alternatively set the whiteSpace facet for the element's simpleType to "preserve". If modifying the schema is not possible, use the whitespace CVK property (configureProperties).

Previously, Fonto replaced all white space characters in the displayed document (not in the actual XML) with alternating spaces and non-breakable spaces to prevent adjacent spaces collapsing. This experiment switches to an experimental approach which allows the actual white space characters to be used in the displayed document. This will, for instance, allow each whitespace character to generate an appropriate amount of horizontal space.

Defaults to true.

Attention

Fonto is not able to distinguish between whitespace used for formatting the XML source and whitespace that is part of the document's content in elements with mixed content types. Enabling this experiment will cause line breaks and indentation used to format the XML source to show up as content in such elements.

When processing XML documents outside Fonto, avoid using white space characters, including new-lines, for formatting XML source inside mixed-content elements.