How can I indent a Rich Tree? #1642
-
Hi all, This library is incredible, but there's one thing I haven't been able to figure out without doing some real hackery: I'm trying to render a tree as part of a formatted preamble to a CLI that I'm developing. Right now the rest of the preamble has a number of indentation levels, and I would like the tree to be at the same indentation as the rest of the test where it occurs, instead of being pinned to the far left of the console. Please forgive me if this is something that I'm missing from the docs, but is there a way to set the indentation of a tree (or any other renderable?) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use the Padding class for this. There is a shortcut that adds padding to the left. Here's an example:
|
Beta Was this translation helpful? Give feedback.
You can use the Padding class for this. There is a shortcut that adds padding to the left. Here's an example: