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
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user