Formatter has extensions to customize the spacing around punctuation. These are used mostly for documents in European languages.
The following XSL-FO code was originally present in the fo:declarations
element of the XSL-FO document:
<axf:space-after-punctuation code="." space="2in" language="en"/>
This is an Antenna House Formatter specific instruction. In an HTML+CSS workflow, this global setting is typically configured via an Antenna House Formatter options file (e.g., config.xml
) rather than a direct CSS rule in the stylesheet. Formatter will apply this setting based on the content of config.xml
when processing the document.
This paragraph has the HTML attribute lang="en"
. This will cause the punctuation spacing (defined in config.xml
) to be applied, and there will be 2 inches of space after the periods. The first paragraph does not have the lang="en"
attribute, so the extension isn't applied to it.