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

Method flush

src/docx/oxml/text/run.py:303–307  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

301 self._bfr.append(char)
302
303 def flush(self):
304 text = "".join(self._bfr)
305 if text:
306 self._r.add_t(text)
307 self._bfr.clear()

Callers 2

add_textMethod · 0.95
add_charMethod · 0.95

Calls 2

add_tMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected