[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

cr (Carriage Return)

This element specifies that a carriage return shall be placed at the current location in the run content. A carriage return is the equivalent of Unicode character 000D, and is used to end the current line of text in WordprocessingML.

The behavior of a carriage return in run content shall be identical to a break character with null type and clear attributes, which shall end the current line and find the next available line on which to continue.

[Example: Consider the following sentence in a WordprocessingML document:

This is another simple sentence.

Normally, just as shown above, this sentence would be displayed on a single line as it is not long enough to require line breaking (given the width of the current page). However, if a carriage return were inserted after the word another, as follows:

<w:r>
<w:t>This is another</w:t>
<w:cr/>
<w:t xml:space="preserve"> simple sentence.</w:t>
</w:r>

This would imply that this carriage return character shall force a line break, and break the line after that word:

This is another
simple sentence.

The carriage return character forced the following text to be restarted on the next available line in the document. end example]

Parent Elements

r7.1.2.87); r2.3.2.23)

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Empty"/>