Skip to content
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] Console.out() always enables highlighting by default #827

Closed
serhiy-storchaka opened this issue Dec 17, 2020 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@serhiy-storchaka
Copy link

Console.out() by default enables highlighting even if it is disabled in the Console constructor.

from rich.console import Console
console = Console(highlight=False)
console.print('cd /usr/lib')  # no hightlight
console.out('cd /usr/lib')  # hightlight

It is expected that Console.out() makes less changes to the output than Console.print().

It happens because the default value of hightlight is True in Console.out() and None in Console.print(). The fix is making it None.

rich 9.3.0

@willmcgugan willmcgugan added bug Something isn't working and removed Needs triage labels Dec 17, 2020
@willmcgugan
Copy link
Collaborator

Fixed in 9.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants