From a26db0bc5d4011de24e5930af6fd9051deeb46be Mon Sep 17 00:00:00 2001 From: NOGISAKA Sadata Date: Mon, 9 Jul 2018 23:49:07 +0900 Subject: [PATCH] format-table: make all widths be set properly Fixes #9549. --- src/basic/format-table.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/basic/format-table.c b/src/basic/format-table.c index 94e796d1caa..ced3593bc48 100644 --- a/src/basic/format-table.c +++ b/src/basic/format-table.c @@ -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; -- 2.47.3