]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: don't add blank padding after left aligned title
authorKarel Zak <kzak@redhat.com>
Tue, 12 Dec 2017 12:19:36 +0000 (13:19 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Dec 2017 14:49:09 +0000 (15:49 +0100)
commit1b4613f7571b93347c83019ff4befc3bafce7173
tree59703c21b4c67e70e256a33357cde666c34fa211
parent2772bb4143320e44e7a6efbd16602205db849c2e
libsmartcols: don't add blank padding after left aligned title

Let's use the same semantic for the title as for the last column in
the table. If aligned on left, table is not "maxout" and title padding
symbol is undefined (or blank) then keep title as short as possible.

Addresses: https://github.com/karelzak/util-linux/issues/549
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/table_print.c