[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

noExtraLineSpacing (Do Not Center Content on Lines With Exact Line Height)

This element specifies whether an exact line height using the spacing element (§2.3.1.33) in the paragraph’s properties, each line shall not be automatically centered within the given amount of line spacing.

Typically, if the exact amount of spacing allotted to a line via the paragraph properties exceeds the amount of space required by that line, then the line of text shall be automatically centered when the text of the document is displayed. This element, when present with a val attribute value of true (or equivalent), specifies thatall additional spacing shall instead be placed below the normal layout of the line of text.

[Example: Consider a WordprocessingML document with a line with an exact height of 32 points:

<w:p>
<w:pPr>
<w:spacing w:line="640" w:lineRule="exact" />
</w:pPr>
<w:r>
<w:t>This is text on a line that's exactly 32 points high.</w:t>
</w:r>
</w:p>

The default presentation would have the resulting text centered on that line:

However, if this compatibility setting is turned on:

<w:compat>
<w:noExtraLineSpacing />
</w:compat>

Then all line spacing is added after the text, resulting in the following output:

end example]

Parent Elements

compat2.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: For example, consider the following on/off property:

 

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

 

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

 

The possible values for this attribute are defined by the ST_OnOff simple type2.18.67).

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

<complexType name="CT_OnOff">

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

</complexType>