Skip to content

Commit

Permalink
Add back in check for SEPARATING_LINE
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkundert committed Oct 8, 2024
1 parent 1cf0f87 commit b39a162
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tabulate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2561,9 +2561,10 @@ def _format_table(
if rows and fmt.linebetweenrows and "linebetweenrows" not in hidden:
# initial rows with a line below
for row, ralign in zip(rows[:-1], rowaligns):
append_row(
lines, pad_row(row, pad), padded_widths, colaligns, fmt.datarow, rowalign=ralign
)
if row != SEPARATING_LINE:
append_row(
lines, pad_row(row, pad), padded_widths, colaligns, fmt.datarow, rowalign=ralign
)
_append_line(lines, padded_widths, colaligns, fmt.linebetweenrows)
# the last row without a line below
append_row(
Expand Down

0 comments on commit b39a162

Please sign in to comment.