1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
.. _WdLineSpacing:
``WD_LINE_SPACING``
===================
Specifies a line spacing format to be applied to a paragraph.
Example::
from docx.enum.text import WD_LINE_SPACING
paragraph = document.add_paragraph()
paragraph.paragraph_format.line_spacing_rule = WD_LINE_SPACING.EXACTLY
----
ONE_POINT_FIVE
Space-and-a-half line spacing.
AT_LEAST
Line spacing is always at least the specified amount. The amount is
specified separately.
DOUBLE
Double spaced.
EXACTLY
Line spacing is exactly the specified amount. The amount is specified
separately.
MULTIPLE
Line spacing is specified as a multiple of line heights. Changing the font
size will change the line spacing proportionately.
SINGLE
Single spaced (default).
|