From f16f28b0fc0ce09720181b2088254a3a1d0b547a Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 13 Feb 2016 16:13:04 +0100 Subject: [PATCH] libsmartcols: print title only with SCOLS_FMT_HUMAN Reference: https://github.com/karelzak/util-linux/issues/279 Signed-off-by: Igor Gnatenko --- libsmartcols/src/table_print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)