-
Notifications
You must be signed in to change notification settings - Fork 181
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Some terminals support clickable text via escape sequences. If we use the escape sequence
>>> import tabulate
>>>
>>> def encode_url(text: str, target:str):
... return f"\u001b]8;;{target}\u001b\\{text}\u001b]8;;\u001b\\"
...
>>> table = tabulate.tabulate([[encode_url("test", "http://example.org")]], headers=["test"], tablefmt="grid")
>>> print(table)
+--------+
| test |
+========+
| test |
+--------+tabulate does not calculate the width correctly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers