MCPcopy Create free account
hub / github.com/scanny/python-pptx / unclear_content

Method unclear_content

src/pptx/oxml/text.py:170–178  ·  view source on GitHub ↗

Ensure p:txBody has at least one a:p child. Intuitively, reverse a ".clear_content()" operation to minimum conformance with spec (single empty paragraph).

(self)

Source from the content-addressed store, hash-verified

168 return txPr
169
170 def unclear_content(self):
171 """Ensure p:txBody has at least one a:p child.
172
173 Intuitively, reverse a ".clear_content()" operation to minimum conformance with spec
174 (single empty paragraph).
175 """
176 if len(self.p_lst) > 0:
177 return
178 self.add_p()
179
180 @classmethod
181 def _a_txBody_tmpl(cls):

Callers 1

append_ps_fromMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected