File: WdLineSpacing.rst

package info (click to toggle)
python-docx 1.1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,904 kB
  • sloc: xml: 25,311; python: 23,028; makefile: 176
file content (36 lines) | stat: -rw-r--r-- 771 bytes parent folder | download | duplicates (3)
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).