dovecot-2.2: doveadm: Fixed hiding titles' tabs with tab formatt...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 7 21:52:35 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/b8f09586ab33
changeset: 19122:b8f09586ab33
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Sep 08 00:51:30 2015 +0300
description:
doveadm: Fixed hiding titles' tabs with tab formatter (-h -f tab)

diffstat:

 src/doveadm/doveadm-print-tab.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 06b884831f25 -r b8f09586ab33 src/doveadm/doveadm-print-tab.c
--- a/src/doveadm/doveadm-print-tab.c	Tue Sep 08 00:46:11 2015 +0300
+++ b/src/doveadm/doveadm-print-tab.c	Tue Sep 08 00:51:30 2015 +0300
@@ -26,10 +26,12 @@
 static void
 doveadm_print_tab_header(const struct doveadm_print_header *hdr)
 {
-	if (ctx.header_count++ > 0)
-		printf("\t");
-	if (!doveadm_print_hide_titles)
+	ctx.header_count++;
+	if (!doveadm_print_hide_titles) {
+		if (ctx.header_count > 1)
+			printf("\t");
 		printf("%s", hdr->title);
+	}
 }
 
 static void doveadm_print_tab_print(const char *value)


More information about the dovecot-cvs mailing list