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
Describe the bug
With this code
from rich.console import Console console = Console(record=True, highlight=False) console.rule("test") console.save_html('test.html', clear=False)
you get the following HTML Report:
what I would expect:
Git Diff:
diff --git a/test.html b/test.html index 97b6275..4e9e795 100644 --- a/test.html +++ b/test.html @@ -12,7 +12,7 @@ body { <html> <body> <pre style="font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace"> - <code><span class="r1">─────────────────────────────────────────────────────────────────── </span>test<span class="r1"> ────────────────────────────────────────────────────────────────────</span> +<code><span class="r1">─────────────────────────────────────────────────────────────────── </span>test<span class="r1"> ────────────────────────────────────────────────────────────────────</span> </code> </pre> </body>
Platform
What platform (Win/Linux/Mac) are you running on?
Mac with 13.0 (22A380)
What terminal software are you using?
If you're using Rich in a terminal:
python -m rich.diagnose pip freeze | grep rich
❯ poetry run python3 -m rich.diagnose pip freeze | grep rich ╭───────────────────────── <class 'rich.console.Console'> ─────────────────────────╮ │ A high level console interface. │ │ │ │ ╭──────────────────────────────────────────────────────────────────────────────╮ │ │ │ <console width=141 ColorSystem.TRUECOLOR> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ color_system = 'truecolor' │ │ encoding = 'utf-8' │ │ file = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> │ │ height = 18 │ │ 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=141, height=18), │ │ legacy_windows=False, │ │ min_width=1, │ │ max_width=141, │ │ is_terminal=True, │ │ encoding='utf-8', │ │ max_height=18, │ │ justify=None, │ │ overflow=None, │ │ no_wrap=False, │ │ highlight=None, │ │ markup=None, │ │ height=None │ │ ) │ │ quiet = False │ │ record = False │ │ safe_box = True │ │ size = ConsoleDimensions(width=141, height=18) │ │ soft_wrap = False │ │ stderr = False │ │ style = None │ │ tab_size = 8 │ │ width = 141 │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭─── <class 'rich._windows.WindowsConsoleFeatures'> ────╮ │ Windows features available. │ │ │ │ ╭───────────────────────────────────────────────────╮ │ │ │ WindowsConsoleFeatures(vt=False, truecolor=False) │ │ │ ╰───────────────────────────────────────────────────╯ │ │ │ │ truecolor = False │ │ vt = False │ ╰───────────────────────────────────────────────────────╯ ╭────── Environment Variables ───────╮ │ { │ │ 'TERM': 'xterm-256color', │ │ 'COLORTERM': 'truecolor', │ │ 'CLICOLOR': None, │ │ 'NO_COLOR': None, │ │ 'TERM_PROGRAM': 'vscode', │ │ 'COLUMNS': None, │ │ 'LINES': None, │ │ 'JUPYTER_COLUMNS': None, │ │ 'JUPYTER_LINES': None, │ │ 'JPY_PARENT_PID': None, │ │ 'VSCODE_VERBOSE_LOGGING': None │ │ } │ ╰────────────────────────────────────╯ platform="Darwin" rich==13.3.1
The text was updated successfully, but these errors were encountered:
Thank you for your issue. Give us a little time to review it.
PS. You might want to check the FAQ if you haven't done so already.
This is an automated reply, generated by FAQtory
Sorry, something went wrong.
I hope we solved your problem.
If you like using Rich, you might also enjoy Textual
Successfully merging a pull request may close this issue.
Describe the bug
With this code
you get the following HTML Report:
what I would expect:
Git Diff:
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on?
Mac with 13.0 (22A380)
What terminal software are you using?
If you're using Rich in a terminal:
The text was updated successfully, but these errors were encountered: