]> 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>
Mon, 4 Jun 2018 13:20:28 +0000 (15:20 +0200)
commita797704d5d7bed1f665c17e2bce1ed4028250e37
tree9668465f063b7718005c60c3dd515046a72ddbec
parent6691d53797ccc2e5ac840c5b1680fceaa23122db
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