on_separate_lines#
- treescope.rendering_parts.on_separate_lines(children: Sequence[RenderableAndLineAnnotations | RenderableTreePart]) RenderableTreePart [source]#
Builds a part that renders its children on separate lines.
The resulting part stacks the children together, moving any comments to the end of their lines.
- Parameters:
children – Children to render.
- Returns:
A renderable part that renders the children on separate lines when expanded. When collapsed, it instead concatenates them.