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

Method add_r

src/pptx/oxml/text.py:418–423  ·  view source on GitHub ↗

Return a newly appended `a:r` element.

(self, text: str | None = None)

Source from the content-addressed store, hash-verified

416 return self._add_br()
417
418 def add_r(self, text: str | None = None) -> CT_RegularTextRun:
419 """Return a newly appended `a:r` element."""
420 r = self._add_r()
421 if text:
422 r.text = text
423 return r
424
425 def append_text(self, text: str):
426 """Append `a:r` and `a:br` elements to `p` based on `text`.

Callers 2

append_textMethod · 0.95
add_runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected