(self, style_args: StyleArg)
| 552 | self.data[2] = caption |
| 553 | |
| 554 | def to_html(self, style_args: StyleArg) -> str: |
| 555 | if not style_args.show_image: |
| 556 | return "" |
| 557 | if not self.caption: |
| 558 | raise ValueError( |
| 559 | f"caption not found for picture {self.shape_idx} of slide {self.slide_idx}" |
| 560 | ) |
| 561 | return ( |
| 562 | self.indent |
| 563 | + f"<img {self.get_inline_style(style_args)} alt='{self.caption}'/>" |
| 564 | ) |
| 565 | |
| 566 | |
| 567 | class FreeformShape(ShapeElement): |
nothing calls this directly
no test coverage detected