Skip to content

Commit b39a162

Browse files
committed
Add back in check for SEPARATING_LINE
1 parent 1cf0f87 commit b39a162

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tabulate/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,9 +2561,10 @@ def _format_table(
25612561
if rows and fmt.linebetweenrows and "linebetweenrows" not in hidden:
25622562
# initial rows with a line below
25632563
for row, ralign in zip(rows[:-1], rowaligns):
2564-
append_row(
2565-
lines, pad_row(row, pad), padded_widths, colaligns, fmt.datarow, rowalign=ralign
2566-
)
2564+
if row != SEPARATING_LINE:
2565+
append_row(
2566+
lines, pad_row(row, pad), padded_widths, colaligns, fmt.datarow, rowalign=ralign
2567+
)
25672568
_append_line(lines, padded_widths, colaligns, fmt.linebetweenrows)
25682569
# the last row without a line below
25692570
append_row(

0 commit comments

Comments
 (0)