Index: conf.c =================================================================== --- conf.c (revision 1445) +++ conf.c (revision 1446) @@ -2579,6 +2579,13 @@ emit_directive(fp, ds_xprintf("ROLES.%s.", id->pair->val), pair); } } + + if (seen && !emit_vars) { + if (test_emit_format(EMIT_FORMAT_HTML)) + printf("</Roles>
\n"); + else + printf("\n"); + } } i = 0;