Skip to content

[BUG] Print's options don't work with Text, but they do with str #1689

@fernandoenzo

Description

@fernandoenzo

Simple code:

from rich.text import Text
from rich import print

a = Text('aa', end='')
b = Text('bb', end='')
print(a, b, sep=' potatoes ', end='\n\n')

Should output:

aa potatoes bb


The actual output:

aabb

If you use str rather than Text, then it works properly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions