changeset 10594:11708783b5b3 HEAD

doveconf: Don't add extra space to "block {" for unique blocks.
author Timo Sirainen <tss@iki.fi>
date Thu, 28 Jan 2010 00:35:11 +0200
parents 2d118c4e6957
children 9ab4539b736d
files src/config/doveconf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/config/doveconf.c	Wed Jan 27 23:44:35 2010 +0200
+++ b/src/config/doveconf.c	Thu Jan 28 00:35:11 2010 +0200
@@ -203,7 +203,7 @@
 					str_append_n(list_prefix, key2, p - key2);
 				else
 					str_append(list_prefix, key2);
-				if (unique_key)
+				if (unique_key && *value != '\0')
 					str_printfa(list_prefix, " %s", value);
 				str_append(list_prefix, " {\n");
 				indent++;