Method: rich.markdown.BlockQuote.__rich_console__
Calls: 2, Exceptions: 0, Paths: 1Back
Path 1: 2 calls (1.0)
Console (2)
ConsoleOptions (2)
Segment (16)
1def __rich_console__(
2 self, console: Console, options: ConsoleOptions
3 ) -> RenderResult:
4 render_options = options.update(width=options.max_width - 4)
5 lines = console.render_lines(self.elements, render_options, style=self.style)
6 style = self.style
7 new_line = Segment("\n")
8 padding = Segment("▌ ", style)
9 for line in lines:
10 yield padding
11 yield from line
12 yield new_line