Type: Boolean


This API has been deprecated.

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.


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.

Was this page helpful?