minor fixes

This commit is contained in:
Hardik Shah 2024-08-06 18:56:22 -07:00
parent f83b97992c
commit ade574a0ef
4 changed files with 4 additions and 5 deletions

View file

@ -45,7 +45,7 @@ def format_row(row, col_widths):
def print_table(rows, headers=None, separate_rows: bool = False):
def itemlen(item):
return len(strip_ansi_colors(item))
return max([len(line) for line in strip_ansi_colors(item).split("\n")])
rows = [[x or "" for x in row] for row in rows]
if not headers: