report_add_text

report_add_text(doc, text, **kwargs)

Add a paragraph of text to a report.

Parameters

Name Type Description Default
doc pptx.Presentation or docx.Document A document from report_new(). required
text str or list of str Text to add; a list becomes one paragraph (bullet) per element on slides. required
**kwargs Passed to python-docx’s add_paragraph() (docx only). {}

Returns

Name Type Description
pptx.Presentation or docx.Document The document.

See Also

report_slide

Examples

>>> doc = report_add_text(report_new("docx"), "Key findings follow.")