remove extra space in output; from Ross L Richardson
authorderaadt <deraadt@openbsd.org>
Sun, 29 Jul 2018 12:46:31 +0000 (12:46 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 29 Jul 2018 12:46:31 +0000 (12:46 +0000)
usr.sbin/acme-client/parse.y

index cff8a64..8125ea5 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: parse.y,v 1.25 2018/07/11 07:39:22 krw Exp $ */
+/*     $OpenBSD: parse.y,v 1.26 2018/07/29 12:46:31 deraadt Exp $ */
 
 /*
  * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -998,14 +998,14 @@ print_config(struct acme_conf *xconf)
                printf("domain %s {\n", d->domain);
                TAILQ_FOREACH(ac, &d->altname_list, entry) {
                        if (!f)
-                               printf("\talternative names { ");
+                               printf("\talternative names {");
                        if (ac->domain != NULL) {
                                printf("%s%s", f ? ", " : " ", ac->domain);
                                f = 1;
                        }
                }
                if (f)
-                       printf("}\n");
+                       printf(" }\n");
                if (d->key != NULL)
                        printf("\tdomain key \"%s\"\n", d->key);
                if (d->cert != NULL)