Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Commit

Permalink
format-table: make all widths be set properly
Browse files Browse the repository at this point in the history
Fixes systemd#9549.

(cherry picked from commit a26db0b)
  • Loading branch information
nosada authored and keszybz committed Oct 29, 2018
1 parent 44283f5 commit d0a0bca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/basic/format-table.c
Expand Up @@ -1134,14 +1134,12 @@ int table_print(Table *t, FILE *f) {
assert(weight_sum >= column_weight[j]);
weight_sum -= column_weight[j];

if (restart)
if (restart && !finalize)
break;
}

if (finalize) {
assert(!restart);
if (finalize)
break;
}

if (!restart)
finalize = true;
Expand Down

0 comments on commit d0a0bca

Please sign in to comment.