hh
This commit is contained in:
@@ -15,6 +15,7 @@ logger = logging.getLogger(__name__)
|
||||
from SYS.result_table import (
|
||||
RESULT_TABLE_BORDER_STYLE,
|
||||
RESULT_TABLE_HEADER_STYLE,
|
||||
apply_result_table_layout,
|
||||
get_result_table_row_style,
|
||||
)
|
||||
from SYS.result_table_api import ColumnSpec, ResultModel, ResultTable, Renderer
|
||||
@@ -39,10 +40,19 @@ class RichRenderer(Renderer):
|
||||
show_header=True,
|
||||
header_style=RESULT_TABLE_HEADER_STYLE,
|
||||
border_style=RESULT_TABLE_BORDER_STYLE,
|
||||
box=None,
|
||||
padding=(0, 1),
|
||||
pad_edge=False,
|
||||
collapse_padding=True,
|
||||
expand=False,
|
||||
)
|
||||
apply_result_table_layout(table)
|
||||
cols = list(columns)
|
||||
for col in cols:
|
||||
table.add_column(col.header)
|
||||
if str(col.header or "").strip().lower() == "tag":
|
||||
table.add_column(col.header, overflow="fold")
|
||||
else:
|
||||
table.add_column(col.header)
|
||||
|
||||
for row_idx, r in enumerate(rows):
|
||||
cells = []
|
||||
|
||||
Reference in New Issue
Block a user