MCPcopy Index your code
hub / github.com/python-openxml/python-docx / _insert_paragraph_before

Method _insert_paragraph_before

src/docx/text/paragraph.py:170–173  ·  view source on GitHub ↗

Return a newly created paragraph, inserted directly before this paragraph.

(self)

Source from the content-addressed store, hash-verified

168 self.add_run(text)
169
170 def _insert_paragraph_before(self):
171 """Return a newly created paragraph, inserted directly before this paragraph."""
172 p = self._p.add_p_before()
173 return Paragraph(p, self._parent)

Calls 2

ParagraphClass · 0.85
add_p_beforeMethod · 0.80

Tested by 1