summaryrefslogtreecommitdiff
path: root/robusta_krr/formatters
diff options
context:
space:
mode:
Diffstat (limited to 'robusta_krr/formatters')
-rw-r--r--robusta_krr/formatters/table.py4
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]