Skip to content

Commit 24b9af7

Browse files
committed
fix: documentation fixes
1 parent e1ffdcc commit 24b9af7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api/enum/WdLineSpacing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Example::
1010
from docx.enum.text import WD_LINE_SPACING
1111

1212
paragraph = document.add_paragraph()
13-
paragraph.line_spacing_rule = WD_LINE_SPACING.EXACTLY
13+
paragraph.paragraph_format.line_spacing_rule = WD_LINE_SPACING.EXACTLY
1414

1515
----
1616

docs/dev/analysis/features/shapes/picture.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Candidate protocol
1212
::
1313

1414
>>> run = paragraph.add_run()
15-
>>> inline_shape = run.add_inline_picture(file_like_image, MIME_type=None)
15+
>>> inline_shape = run.add_picture(file_like_image, MIME_type=None)
1616
>>> inline_shape.width = width
1717
>>> inline_shape.height = height
1818

0 commit comments

Comments
 (0)