We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1ffdcc commit 24b9af7Copy full SHA for 24b9af7
docs/api/enum/WdLineSpacing.rst
@@ -10,7 +10,7 @@ Example::
10
from docx.enum.text import WD_LINE_SPACING
11
12
paragraph = document.add_paragraph()
13
- paragraph.line_spacing_rule = WD_LINE_SPACING.EXACTLY
+ paragraph.paragraph_format.line_spacing_rule = WD_LINE_SPACING.EXACTLY
14
15
----
16
docs/dev/analysis/features/shapes/picture.rst
@@ -12,7 +12,7 @@ Candidate protocol
::
>>> run = paragraph.add_run()
- >>> inline_shape = run.add_inline_picture(file_like_image, MIME_type=None)
+ >>> inline_shape = run.add_picture(file_like_image, MIME_type=None)
>>> inline_shape.width = width
17
>>> inline_shape.height = height
18
0 commit comments