Wordprocessing Paragraphs
Spacing between paragraphs and between lines of a paragaph is defined with the <w:spacing> element.
Values are in twentieths of a point. A normal single-spaced paragaph has a w:line value of 240, or 12 points. To specify units in hundreths of a line, use attributes 'afterLines'/'beforeLines'.
The space between adjacent paragraphs will be the greater of the 'line' spacing of each paragraph, the spacing after the first paragraph, and the spacing before the second paragraph. So if the first paragraph specifies 240 after and the second 80 before, and they are both single-spaced ('line' value of 240), then the space between the paragraphs will be 240.
Attributes:
The most commonly used attributes are:
Attribute | Description |
---|---|
after | Specifies the spacing (in absolute units) that should be added after the last line of the paragraph. |
before | Specifies the spacing (in absolute units) that should be added before the first line of the paragraph. |
line | Specifies the amount of vertical spacing between lines of text within the paragraph.
Note: If the value of the lineRule attribute is atLeast or exactly, then the value of the line attribute is interpreted as 240th of a point. If the value of lineRule is auto, then the value of line is interpreted as 240th of a line. |
lineRule | Specifies how the spacing between lines as specified in the line attribute is calculated.
Note: If the value of the lineRule attribute is atLeast or exactly, then the value of the line attribute is interpreted as 240th of a point. If the value of lineRule is auto, then the value of line is interpreted as 240th of a line. |
beforeAutospacing | Specifies whether spacing before the paragraph should be determined by the consumer/wordprocessor.
Note: If this is set to true (i.e., ='1' or ='true'), then any value for before or beforeLines is ignored. |
afterAutospacing | Specifies whether spacing after the paragraph should be determined by the consumer/wordprocessor.
Note: If this is set to true (i.e., ='1' or ='true'), then any value for after or afterLines is ignored. |
Related CSS property:
line-height:2;