MCPcopy Create free account
hub / github.com/PageBot/PageBot / _set_style

Method _set_style

Lib/pagebot/contexts/basecontext/babelstring.py:886–891  ·  view source on GitHub ↗
(self, style)

Source from the content-addressed store, hash-verified

884 return {}
885
886 def _set_style(self, style):
887 if self.runs:
888 self.runs[-1].style = style
889 else:
890 # No runs, create a new one, with style and empty string.
891 self.runs.append(BabelRun(s='', style=style))
892
893 style = property(_get_style, _set_style)
894

Callers

nothing calls this directly

Calls 2

BabelRunClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected