]> 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>
Tue, 12 Dec 2017 12:19:36 +0000 (13:19 +0100)
commit3fa48b118adcfbfb1a45e9e1c62176fcdab900d8
tree3cffb017e69fd92defc45d547946fa344e9d3ee8
parent8aeda56b5da50054168ad5cd2bdfeb773177b77e
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