diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2016-02-13 16:13:04 +0100 |
---|---|---|
committer | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2016-02-13 16:13:04 +0100 |
commit | f16f28b0fc0ce09720181b2088254a3a1d0b547a (patch) | |
tree | 96d0c47b3ff7760c3dba690f8dc7316967ddd360 /libsmartcols | |
parent | e7fccab111068d476ef91d9bcc0d59adf751ccfc (diff) | |
download | util-linux-f16f28b0fc0ce09720181b2088254a3a1d0b547a.tar.gz |
libsmartcols: print title only with SCOLS_FMT_HUMAN
Reference: https://github.com/karelzak/util-linux/issues/279
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'libsmartcols')
-rw-r--r-- | libsmartcols/src/table_print.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsmartcols/src/table_print.c b/libsmartcols/src/table_print.c index a726bb9f5..55996ebe3 100644 --- a/libsmartcols/src/table_print.c +++ b/libsmartcols/src/table_print.c @@ -1299,7 +1299,8 @@ int scols_print_table(struct libscols_table *tb) fput_table_open(tb); - print_title(tb); + if (tb->format == SCOLS_FMT_HUMAN) + print_title(tb); rc = print_header(tb, buf); if (rc) |