Skip to content
This repository was archived by the owner on Jan 12, 2018. It is now read-only.

Commit 25022b3

Browse files
committed
Add an example showing italic text.
The doc-string of `paragraph` does show this, but having an example helps users who don't look at the source.
1 parent a7130f3 commit 25022b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

example-makedocument.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
]
3838
for point in points:
3939
body.append(paragraph(point, style='ListNumber'))
40-
body.append(paragraph('For those of us who prefer something simpler, I '
41-
'made docx.'))
40+
body.append(paragraph([('For those of us who prefer something simpler, I '
41+
'made docx.', 'i')]))
4242
body.append(heading('Making documents', 2))
4343
body.append(paragraph('The docx module has the following features:'))
4444

0 commit comments

Comments
 (0)