Method: rich.markdown.ListItem.render_bullet
Calls: 10, Exceptions: 0, Paths: 1Back
Path 1: 10 calls (1.0)
Console (10)
ConsoleOptions (10)
Segment (45)
1def render_bullet(self, console: Console, options: ConsoleOptions) -> RenderResult:
2 render_options = options.update(width=options.max_width - 3)
3 lines = console.render_lines(self.elements, render_options, style=self.style)
4 bullet_style = console.get_style("markdown.item.bullet", default="none")
5
6 bullet = Segment(" • ", bullet_style)
7 padding = Segment(" " * 3, bullet_style)
8 new_line = Segment("\n")
9 for first, line in loop_first(lines):
10 yield bullet if first else padding
11 yield from line
12 yield new_line