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

Method add_text

src/docx/oxml/text/run.py:281–285  ·  view source on GitHub ↗

Append inner-content elements for `text` to the `w:r` element.

(self, text: str)

Source from the content-addressed store, hash-verified

279 appender.add_text(text)
280
281 def add_text(self, text: str):
282 """Append inner-content elements for `text` to the `w:r` element."""
283 for char in text:
284 self.add_char(char)
285 self.flush()
286
287 def add_char(self, char: str):
288 """Process next character of input through finite state maching (FSM).

Callers 1

Calls 2

add_charMethod · 0.95
flushMethod · 0.95

Tested by

no test coverage detected