We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
end/new line
Text()
You may find a solution to your problem in the docs or issues.
Describe the bug
With rich v10
>>> from rich import print >>> from rich.text import Text >>> print(Text("a"), Text("b")) a b >>> print(Text("a", end="end"), Text("b")) aendb
With rich v11 and v12
>>> from rich import print >>> from rich.text import Text >>> print(Text("a"), Text("b")) a b >>> print(Text("a", end="end"), Text("b")) a b
Not sure if this is intended. Haven't found any docs about this in CHANGELOG.
Platform
What platform (Win/Linux/Mac) are you running on? WSL2
What terminal software are you using? Vscode terminal
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:
python -m rich.diagnose pip freeze | grep rich
╭───────────────────────── <class 'rich.console.Console'> ─────────────────────────╮ │ A high level console interface. │ │ │ │ ╭──────────────────────────────────────────────────────────────────────────────╮ │ │ │ <console width=226 ColorSystem.TRUECOLOR> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ color_system = 'truecolor' │ │ encoding = 'utf-8' │ │ file = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> │ │ height = 27 │ │ is_alt_screen = False │ │ is_dumb_terminal = False │ │ is_interactive = True │ │ is_jupyter = False │ │ is_terminal = True │ │ legacy_windows = False │ │ no_color = False │ │ options = ConsoleOptions( │ │ size=ConsoleDimensions(width=226, height=27), │ │ legacy_windows=False, │ │ min_width=1, │ │ max_width=226, │ │ is_terminal=True, │ │ encoding='utf-8', │ │ justify=None, │ │ overflow=None, │ │ no_wrap=False, │ │ highlight=None, │ │ markup=None, │ │ height=None │ │ ) │ │ quiet = False │ │ record = False │ │ safe_box = True │ │ size = ConsoleDimensions(width=226, height=27) │ │ soft_wrap = False │ │ stderr = False │ │ style = None │ │ tab_size = 8 │ │ width = 226 │ ╰──────────────────────────────────────────────────────────────────────────────────╯ rich==10.0.0
╭───────────────────────── <class 'rich.console.Console'> ─────────────────────────╮ │ A high level console interface. │ │ │ │ ╭──────────────────────────────────────────────────────────────────────────────╮ │ │ │ <console width=226 ColorSystem.TRUECOLOR> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ color_system = 'truecolor' │ │ encoding = 'utf-8' │ │ file = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> │ │ height = 27 │ │ is_alt_screen = False │ │ is_dumb_terminal = False │ │ is_interactive = True │ │ is_jupyter = False │ │ is_terminal = True │ │ legacy_windows = False │ │ no_color = False │ │ options = ConsoleOptions( │ │ size=ConsoleDimensions(width=226, height=27), │ │ legacy_windows=False, │ │ min_width=1, │ │ max_width=226, │ │ is_terminal=True, │ │ encoding='utf-8', │ │ max_height=27, │ │ justify=None, │ │ overflow=None, │ │ no_wrap=False, │ │ highlight=None, │ │ markup=None, │ │ height=None │ │ ) │ │ quiet = False │ │ record = False │ │ safe_box = True │ │ size = ConsoleDimensions(width=226, height=27) │ │ soft_wrap = False │ │ stderr = False │ │ style = None │ │ tab_size = 8 │ │ width = 226 │ ╰──────────────────────────────────────────────────────────────────────────────────╯ rich==11.0.0
The text was updated successfully, but these errors were encountered:
When you print, its the sep argument that is used to join the text.
sep
Sorry, something went wrong.
Did I solve your problem?
Why not buy the devs a coffee to say thanks?
No branches or pull requests
You may find a solution to your problem in the docs or issues.
Describe the bug
With rich v10
With rich v11 and v12
Not sure if this is intended. Haven't found any docs about this in CHANGELOG.
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on?
WSL2
What terminal software are you using?
Vscode terminal
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: