diff options
| author | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-16 12:17:22 +0300 |
|---|---|---|
| committer | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-16 12:17:22 +0300 |
| commit | 00a184952733167541d72fb7d64dabeb5cd44dfc (patch) | |
| tree | 0512f100fe38a3ffd8928c0b90a74094cf2ca326 /robusta_krr/formatters | |
| parent | a3887611c86c2845c12af0c1e73c8240c7f512a5 (diff) | |
[MAIN-169] Fix rich cutting long lines
Diffstat (limited to 'robusta_krr/formatters')
| -rw-r--r-- | robusta_krr/formatters/table.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/robusta_krr/formatters/table.py b/robusta_krr/formatters/table.py index aa5c3bf..8ef1696 100644 --- a/robusta_krr/formatters/table.py +++ b/robusta_krr/formatters/table.py @@ -1,7 +1,6 @@ from __future__ import annotations import itertools -from typing import Optional from rich.table import Table @@ -18,6 +17,7 @@ class TableFormatter(BaseFormatter): """Formatter for text output.""" __display_name__ = "table" + __rich_console__ = True def _format(self, value: RecommendationValue) -> str: if value is None: @@ -52,7 +52,7 @@ class TableFormatter(BaseFormatter): table = Table( show_header=True, header_style="bold magenta", - title=result.description, + title=f"\n{result.description}\n" if result.description else None, title_justify="left", title_style="", # TODO: Fix points calculation at [MAIN-270] |
