Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_text
Method · 0.95
add_char
Method · 0.95
Calls
2
add_t
Method · 0.80
clear
Method · 0.45
Tested by
no test coverage detected