Table of Contents

Syntax #


Purpose #

The p.lines annotation is used to tag elements where line breaks should be preserved, but white space and character spacing can be removed. This can be used to preserve formatting for any kind of text where line breaks are important, but not other types of formatting.

If white space and character spacing must also be preserved, the p.pre annotation should be used instead.

Examples #

The following is an example of a time where you might want to use the p.lines annotation:

In the source document, the text is formatted with expanded character spacing and line breaks.

In Migrate, the same text appears as follows:

The following is an example of a rule that will apply p.lines:

The following is the DITA XML output for the rule:


<lines>In pale moonlight&#x2028; the wisteria&#x2019;s scent&#x2028;comes from far away&#x2028;- Yosa Buson</lines>
</conbody></conbody></conbody><title>Table 2. Loud Animals</title></fig></related-links></titlealts></titlealts><title>Figure 2. Happy Face</title></fig>


This XML will preserve the line breaks, but will not preserve the expanded character spacing.