From: Lennart Poettering Date: Wed, 24 Feb 2021 17:54:32 +0000 (+0100) Subject: format-table: don't suppress trailing whitespace in first line X-Git-Tag: v248-rc3~118 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=249a967f62b75e75269c487d7fb2a35098a289f5;p=thirdparty%2Fsystemd.git format-table: don't suppress trailing whitespace in first line We underline the first line, hence we shouldn't suppress the whitespace, otherwise the line will end early. Follow-up for: 71894e18313e41a72cecdc77fea5037f95d6903f --- diff --git a/src/shared/format-table.c b/src/shared/format-table.c index 77e3e7ccec9..8aaa9ccfa41 100644 --- a/src/shared/format-table.c +++ b/src/shared/format-table.c @@ -2260,7 +2260,7 @@ int table_print(Table *t, FILE *f) { /* Drop trailing white spaces of last column when no cosmetics is set. */ if (j == display_columns - 1 && - (!colors_enabled() || !table_data_color(d)) && + (!colors_enabled() || (!table_data_color(d) && row != t->data)) && (!urlify_enabled() || !d->url)) delete_trailing_chars(aligned, NULL);