summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rule.c b/src/rule.c
index 18ff5920..2f03b985 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -267,7 +267,10 @@ static void set_print_declaration(const struct set *set,
if (opts->table != NULL)
printf(" %s", opts->table);
- printf(" %s { %s", set->handle.set, opts->nl);
+ printf(" %s {%s", set->handle.set, opts->nl);
+
+ if (!opts->nl[0])
+ printf(" ");
printf("%s%stype %s", opts->tab, opts->tab, set->keytype->name);
if (set->flags & SET_F_MAP)