-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
Description
- I've checked docs and closed issues for possible solutions.
- I can't find my issue in the FAQ.
Describe the bug
As of Rich 14.3.0, when soft_wrap is True, then a table's title prints on the left, regardless of the title_justify value.
This code reproduces the issue.
from rich.console import Console
from rich.table import Table
table = Table(title="The Title", title_justify="center")
table.add_column("Column 1")
table.add_column("Column 2")
c = Console()
c.print(table)
c.print()
c.print(table, soft_wrap=True)The second table should have its title centered.
Platform
rich==14.3.1
Python 3.13.5
Debian 13.3
xfce4-terminal 1.1.4
Reactions are currently unavailable