MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / to_html

Method to_html

utils/src/presentation.py:825–833  ·  view source on GitHub ↗
(self, style_args: StyleArg)

Source from the content-addressed store, hash-verified

823 )
824
825 def to_html(self, style_args: StyleArg) -> str:
826 textframe = self.text_frame.to_html(style_args)
827 if not textframe:
828 return ""
829 return (
830 f"{self.indent}<div data-shape-type='{self.data['svg_tag']}'{self.get_inline_style(style_args)}>"
831 + f"\n{textframe}"
832 + f"\n{self.indent}</div>"
833 )
834
835
836class Connector(ShapeElement):

Callers

nothing calls this directly

Calls 2

to_htmlMethod · 0.45
get_inline_styleMethod · 0.45

Tested by

no test coverage detected