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

Method iter_inner_content

src/docx/blkcntnr.py:74–79  ·  view source on GitHub ↗

Generate each `Paragraph` or `Table` in this container in document order.

(self)

Source from the content-addressed store, hash-verified

72 return Table(tbl, self)
73
74 def iter_inner_content(self) -> Iterator[Paragraph | Table]:
75 """Generate each `Paragraph` or `Table` in this container in document order."""
76 from docx.table import Table
77
78 for element in self._element.inner_content_elements:
79 yield (Paragraph(element, self) if isinstance(element, CT_P) else Table(element, self))
80
81 @property
82 def paragraphs(self):

Callers

nothing calls this directly

Calls 2

ParagraphClass · 0.90
TableClass · 0.90

Tested by

no test coverage detected