Simple diff so that instead of printing
...
alternative names { httpd.example.com, secure.example.com}
...
we get
...
alternative names { httpd.example.com, secure.example.com }
...
Ross
Index: parse.y
===================================================================
RCS file: /cvs/src/usr.sbin/acme-client/parse.y,v
retrieving revision 1.25
diff -u -p -r1.25 parse.y
--- parse.y 11 Jul 2018 07:39:22 -0000 1.25
+++ parse.y 29 Jul 2018 05:31:57 -0000
@@ -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)