Return paragraph newly added to the end of the document. The paragraph is populated with `text` and having paragraph style `style`. `text` can contain tab (``\\t``) characters, which are converted to the appropriate XML form for a tab. `text` can also include newline (``\\n
(self, text: str = "", style: str | ParagraphStyle | None = None)
| 107 | return paragraph |
| 108 | |
| 109 | def add_paragraph(self, text: str = "", style: str | ParagraphStyle | None = None) -> Paragraph: |
| 110 | """Return paragraph newly added to the end of the document. |
| 111 | |
| 112 | The paragraph is populated with `text` and having paragraph style `style`. |
| 113 | |
| 114 | `text` can contain tab (``\\t``) characters, which are converted to the |
| 115 | appropriate XML form for a tab. `text` can also include newline (``\\n``) or |
| 116 | carriage return (``\\r``) characters, each of which is converted to a line |
| 117 | break. |
| 118 | """ |
| 119 | return self._body.add_paragraph(text, style) |
| 120 | |
| 121 | def add_picture( |
| 122 | self, |
no outgoing calls
no test coverage detected