refactoring

This commit is contained in:
iperov 2021-11-07 10:03:15 +04:00
parent 8489949f2c
commit 30ba51edf7
24 changed files with 663 additions and 459 deletions

View file

@ -247,7 +247,8 @@ def ascii_table(table_def : List[str],
if row_line is not None:
lines.append(row_line)
for sub_rows in rows:
for row in sub_rows:
line = ''
@ -288,7 +289,8 @@ def ascii_table(table_def : List[str],
line += right_border
lines.append(line)
if row_line is not None:
if len(sub_rows) != 0 and row_line is not None:
lines.append(row_line)
return '\n'.join(lines)