rich-cli icon indicating copy to clipboard operation
rich-cli copied to clipboard

--width / --max-width in SVG export don't affect the width of the picture

Open hynek opened this issue 1 year ago • 1 comments

I'm using rich-cli in my latest semi-stealth project at https://github.com/hynek/hatch-fancy-pypi-readme and I've noticed that I can set the width of the output, but the SVG export will always be the width of the terminal. That means the right side of the SVG is blank.

In other words: I have to resize the terminal to get the output I want (see README). I'm a I missing something, or is this on purpose, or is this a bug?

hynek avatar Aug 03 '22 18:08 hynek

The SVG export replicates what you see in the terminal. So it is kind of by design. But on reflection, I think it would make more sense for it to override the size of the terminal rather than the size of the content.

Fancy readme looks interesting!

willmcgugan avatar Aug 04 '22 08:08 willmcgugan