MCPcopy
hub / github.com/python-openxml/python-docx / inner_content_elements

Method inner_content_elements

src/docx/oxml/table.py:487–493  ·  view source on GitHub ↗

Generate all `w:p` and `w:tbl` elements in this document-body. Elements appear in document order. Elements shaded by nesting in a `w:ins` or other "wrapper" element will not be included.

(self)

Source from the content-addressed store, hash-verified

485
486 @property
487 def inner_content_elements(self) -> list[CT_P | CT_Tbl]:
488 """Generate all `w:p` and `w:tbl` elements in this document-body.
489
490 Elements appear in document order. Elements shaded by nesting in a `w:ins` or
491 other "wrapper" element will not be included.
492 """
493 return self.xpath("./w:p | ./w:tbl")
494
495 def iter_block_items(self):
496 """Generate a reference to each of the block-level content elements in this

Callers

nothing calls this directly

Calls 1

xpathMethod · 0.80

Tested by

no test coverage detected