From fbf3aa3ff5ef8fcce8d0b36fe61a3b9855b6f7ab Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Fri, 8 Jun 2001 21:39:56 +0000 Subject: [PATCH] Grog tries to figure out if to use mdoc.old instead of mdoc by looking at some macros that were only present in the old version, and by looking at the number of .Oo's present. In mdoc.old .Oo was a toggle, but in mdoc it's closed by .Oc, so if the number of .Oo's is bigger than the number of .Oc's, it figures it must be mdoc.old. This doesn't however account for called Oc's, and thus grog thinks that valid pages are mdoc.old when they infact are mdoc. So let's make sure that Oc's are not called by other macros. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10031 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/getarg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roken/getarg.c b/lib/roken/getarg.c index de99f7df1..a4ce3aed3 100644 --- a/lib/roken/getarg.c +++ b/lib/roken/getarg.c @@ -139,7 +139,7 @@ mandoc_template(struct getargs *args, print_arg(buf, sizeof(buf), 1, 0, args + i); printf(".Oo Fl %c%s \\*(Ba Xo\n", args[i].short_name, buf); print_arg(buf, sizeof(buf), 1, 1, args + i); - printf(".Fl -%s%s Oc\n.Xc\n", args[i].long_name, buf); + printf(".Fl -%s%s\n.Xc\n.Oc\n", args[i].long_name, buf); } /* if(args[i].type == arg_strings)