From 00a184952733167541d72fb7d64dabeb5cd44dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=96=D1=83=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2?= <33721692+LeaveMyYard@users.noreply.github.com> Date: Tue, 16 May 2023 12:17:22 +0300 Subject: [MAIN-169] Fix rich cutting long lines --- robusta_krr/formatters/table.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'robusta_krr/formatters') 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] -- cgit v1.2.3