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

Method to_html

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

Source from the content-addressed store, hash-verified

791 return f"{self.__class__.__name__}: {self.data}"
792
793 def to_html(self, style_args: StyleArg) -> str:
794 return (
795 self.indent
796 + f"<div class='{self.group_label}'{self.get_inline_style(style_args)}>\n"
797 + "\n".join([shape.to_html(style_args) for shape in self.data])
798 + "\n"
799 + self.indent
800 + "</div>\n"
801 )
802
803
804class FreeShape(ShapeElement):

Callers

nothing calls this directly

Calls 2

get_inline_styleMethod · 0.45
to_htmlMethod · 0.45

Tested by

no test coverage detected