You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the OSC8 hyperlinks are capturing padding spaces in table cell contents. It would be nice if the hyperlink applied to the text only, with padding outside the link:
fromrich.consoleimportConsolefromrich.tableimportTablefromrich.textimportTextconsole=Console()
table=Table(show_header=False)
table.add_row("Key", "I am wide I am wide I am wide")
table.add_row("Key", Text("Value", style="link http://example.com"))
console.print(table)
screenshot uses Alacritty, with cmd held down and pointer over link:
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
MacOS
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
This is the expected behavior. The style attribute will apply to the entire cell. If you want to apply a style to specific parts of the text you can use console markup, or Text.stylize
Hi, thanks for
rich
!Describe the bug
It looks like the OSC8 hyperlinks are capturing padding spaces in table cell contents. It would be nice if the hyperlink applied to the text only, with padding outside the link:
screenshot uses Alacritty, with cmd held down and pointer over link:
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
MacOS
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
If you're using Rich in a terminal:
The text was updated successfully, but these errors were encountered: