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

Method iter_block_items

src/docx/oxml/table.py:495–501  ·  view source on GitHub ↗

Generate a reference to each of the block-level content elements in this cell, in the order they appear.

(self)

Source from the content-addressed store, hash-verified

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
497 cell, in the order they appear."""
498 block_item_tags = (qn("w:p"), qn("w:tbl"), qn("w:sdt"))
499 for child in self:
500 if child.tag in block_item_tags:
501 yield child
502
503 @property
504 def left(self) -> int:

Callers 3

_is_emptyMethod · 0.95
_move_content_toMethod · 0.95

Calls 1

qnFunction · 0.90

Tested by

no test coverage detected