dovecot-2.0: doveadm: Tab formatter was printing extra spaces.

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 23 17:28:30 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/45473cd0e3e6
changeset: 11889:45473cd0e3e6
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 23 15:28:24 2010 +0100
description:
doveadm: Tab formatter was printing extra spaces.

diffstat:

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

diffs (14 lines):

diff -r 4513949b26b3 -r 45473cd0e3e6 src/doveadm/doveadm-print-tab.c
--- a/src/doveadm/doveadm-print-tab.c	Thu Jul 22 18:25:09 2010 +0100
+++ b/src/doveadm/doveadm-print-tab.c	Fri Jul 23 15:28:24 2010 +0100
@@ -32,9 +32,7 @@
 		printf("\t");
 	printf("%s", value);
 
-	if (++ctx.header_idx < ctx.header_count)
-		printf(" ");
-	else {
+	if (++ctx.header_idx == ctx.header_count) {
 		ctx.header_idx = 0;
 		printf("\n");
 	}


More information about the dovecot-cvs mailing list