Skip to content
Discussion options

You must be logged in to vote

overflow="ellipsis" defines what will happen when the text overflows (i.e. doesn't fit). If it can wrap onto the following line, it likely won't overflow (unless you have a very large word).

If you disable wrapping, it increases the chances it will overflow. But then the table will try to fit the entire line in, and you've created constraints that are impossible to satisfy.

If you want this behavior, you could extend the Text class. Something like this.

#!/usr/bin/python3

from rich.console import Console
from rich.table import Table
from rich.text import Text

class SingleLineText(Text):
    def __rich_measure__(self, console, options):
        return super().__rich_measure__(console, op…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@elboulangero
Comment options

Answer selected by elboulangero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #4097 on April 24, 2026 07:39.