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: 71894e1831
This commit is contained in:
Lennart Poettering
2021-02-25 16:31:25 +09:00
committed by Yu Watanabe
parent fa02711758
commit 249a967f62
+1 -1
View File
@@ -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);