-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Using rich.syntax CLI with line numbers and indent has incorrect background #1088
Comments
Thanks. I'll have a fix in the next version... |
Thanks Will. Appreciate your work here. I'm thinking of submitting some feature updates to Stay safe and healthy. |
Thanks @davised Please try 9.13.0 |
Thanks for the quick turnaround. Looks beautiful. I like the syntax highlighting choices from your package more than my own vim theme despite them using the same colors! Cheers |
Read the docs
Done. For others reading this issue: https://rich.readthedocs.io/en/latest/syntax.html
Describe the bug
The background set using
rich.syntax -b
is not applied to the line numbers or indents (-l -i
flags).To Reproduce
Code section
I think this is the relevant section. I found that background_color is set to my
-b
option, but then highlight_number_style is not set to what is expected (?).The strange thing is that the card printed using
python -m rich
looks completely fine to me.Platform
I'm on Arch Linux using the kitty terminal (tested on alacritty as well).
Diagnose
I'm happy to help troubleshoot and/or fix the bug once we get it figured out.
The text was updated successfully, but these errors were encountered: