-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
Describe the bug
The highlight keyword does not affect padded text, either to turn highlighting off or to turn it on.
To Reproduce
from rich.console import Console
from rich.padding import Padding
console = Console(highlight=True)
console.print(Padding("1 2 3 4", (1,1)), highlight=False)Expected output: numbers are not highlighted.
Actual output: numbers are highlighted.
from rich.console import Console
from rich.padding import Padding
console = Console(highlight=False)
console.print(Padding("1 2 3 4", (1,1)), highlight=True)Expected output: numbers are highlighted.
Actual output: numbers are not highlighted.
Platform
macOS 11.5.1
iTerm2 3.4.8
rich==10.7.0
Reactions are currently unavailable