lines

Darwin Information Typing Architecture (DITA) Version 1.3 Part 3: All-Inclusive Edition

Document
Darwin Information Typing Architecture (DITA) Version 1.3 Part 3: All-Inclusive Edition
Version
1.3
Author
OASIS DITA Technical Committee

The lines element contains text where line breaks are significant but white space is not. It can be used to represent dialogs, poetry, or other text fragments where line breaks are significant. The lines element is similar to pre in that line breaks are preserved, but the font style is not typically set to monospace, and extra spaces inside the lines are not preserved.

Content models

See appendix for information about this element in OASIS document type shells.

Inheritance

- topic/lines

Example

This is a sample of my favorite sonnet.
<lines>
Shall I compare thee to a summer's day?
Thou art more lovely and more temperate:
Rough winds do shake the darling buds of May,
and summer's lease hath all too short a date:
...</lines>

Though exact formatting will vary, the previous sample will typically be rendered as follows.

This is a sample of my favorite sonnet

Shall I compare thee to a summer's day?
Thou art more lovely and more temperate:
Rough winds do shake the darling buds of May,
and summer's lease hath all too short a date:
...

Attributes

The following attributes are available on this element: Universal attribute group, Display attribute group, outputclass, xml:space, and spectitle.