22.6.3 Suppressing line breaks in HTML and XML output

By default, DITA2Go inserts \n line breaks in HTML and XML output in several places, including (but not limited to) the following:

These line breaks do not affect HTML display. However, if you are generating XML to be imported into a system that treats \n line breaks as though they were paragraph breaks, you might want to get rid of all unintended line breaks in text. See §23.2.5 Preventing arbitrary line breaks in XML text elements.

To suppress \n line breaks after <a name=:

[HTMLOptions]
; ATagLineBreak = Yes (default, \n before first attr) or No
ATagLineBreak=No

To suppress \n line breaks only in preformatted text:

[HTMLOptions]
; UnwrapPRE = No (default) or Yes (ignore line breaks in PRE)
UnwrapPRE = Yes

To suppress \n line breaks in all paragraphs:

[HTMLOptions]
; NoWrap = No (default, \n where space occurs) or Yes
NoWrap = Yes

When NoWrap=Yes, each paragraph comes out in a single line, without any line wrap. Also, leading spaces are preserved. To apply this option to a single paragraph format, see §30.2.4 Stripping paragraph properties.

Previous Topic:  22.6.2 Suppressing closing </p> tags for HTML

Next Topic:  22.6.4 Preventing adjacent <pre> elements from merging

Parent Topic:  22.6 Specifying document-wide properties for HTML

Sibling Topics:

22.6.1 Specifying a default DPI setting

22.6.2 Suppressing closing </p> tags for HTML

22.6.4 Preventing adjacent <pre> elements from merging