MCPcopy Create free account
hub / github.com/SpaceZephyr/myskill / paragraphs

Method paragraphs

pptx/scripts/inventory.py:469–478  ·  view source on GitHub ↗

Calculate paragraphs from the shape's text frame.

(self)

Source from the content-addressed store, hash-verified

467
468 @property
469 def paragraphs(self) -> List[ParagraphData]:
470 """Calculate paragraphs from the shape's text frame."""
471 if not self.shape or not hasattr(self.shape, "text_frame"):
472 return []
473
474 paragraphs = []
475 for paragraph in self.shape.text_frame.paragraphs: # type: ignore
476 if paragraph.text.strip():
477 paragraphs.append(ParagraphData(paragraph))
478 return paragraphs
479
480 def _get_default_font_size(self) -> int:
481 """Get default font size from theme text styles or use conservative default."""

Callers

nothing calls this directly

Calls 1

ParagraphDataClass · 0.85

Tested by

no test coverage detected