format-table: make all widths be set properly

Fixes #9549.
This commit is contained in:
NOGISAKA Sadata
2018-07-12 13:51:58 +09:00
committed by Yu Watanabe
parent 0fad72faee
commit a26db0bc5d
+2 -4
View File
@@ -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;