<doNotExpandShiftReturn> (Don't Justify Lines Ending in Soft Line Break)

This element specifies whether applications should fully justify the contents of incomplete lines which end in a soft line break when the parent paragraph is fully justified using the <jc> element (§2.3.1.13).

Typically, applications shall fully justify all lines in a paragraph when that setting is specified using the <jc> element except for the last line in the paragraph (the line ending with the paragraph mark). This element, when present with a @val attribute value of true (or equivalent), specifies that any line which ends in a soft line break shall also not be fully justified when the paragraph specifies that setting.

example:

However, if this compatibility setting is turned on:

<w:compat>
  <w:doNotExpandShiftReturn />
</w:compat>

Then this line is not fully justified, as it ends with a soft line break, resulting in the following output:

Parent Elements

<compat>2.15.3.9)

Attributes

Description

<val> (On/Off Value)

Specifies a binary value for the property defined by the parent XML element.

A value of on, 1, or true specifies that the property shall be explicitly applied. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted.

A value of off, 0, or false specifies that the property shall be explicitly turned off.

example:
<w:… w:val="off"/>

The @val attribute explicitly declares that the property is turned off. ]

The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67).

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

<complexType name="CT_OnOff">
	<attribute name="val" type="ST_OnOff"/>
</complexType>