MCPcopy
hub / github.com/python-openxml/python-docx / clear

Method clear

src/docx/text/paragraph.py:61–67  ·  view source on GitHub ↗

Return this same paragraph after removing all its content. Paragraph-level formatting, such as style, is preserved.

(self)

Source from the content-addressed store, hash-verified

59 self._p.alignment = value
60
61 def clear(self):
62 """Return this same paragraph after removing all its content.
63
64 Paragraph-level formatting, such as style, is preserved.
65 """
66 self._p.clear_content()
67 return self
68
69 @property
70 def contains_page_break(self) -> bool:

Callers 1

textMethod · 0.95

Calls 1

clear_contentMethod · 0.45

Tested by

no test coverage detected