mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
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:
parent
fa02711758
commit
249a967f62
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user