]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: don't print empty column
authorKarel Zak <kzak@redhat.com>
Mon, 4 Jun 2018 13:20:28 +0000 (15:20 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2018 14:08:04 +0000 (16:08 +0200)
commit998f61f9340e32d2b39c55cd346222a6ae52ef76
tree87b3306617a017a8c77c749a8937b15f7ea2c915
parentc81ca889c614b987a6080a06a37549946fcce6be
libsmartcols: don't print empty column

The commit 0f9f927b6f62cb7f488fadfad76c4a5defdefe36 forces
libsmartcols to use one byte as a minimal column width. This seems
like a bug if the column is empty and without header.

$ printf ':a:b\n' | column -t -s ':' -o ':'
 :a:b

Fixed version:
$ printf ':a:b\n' | column -t -s ':' -o ':'
:a:b

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/table_print.c