From 6d601f57d01308c8dcd7d348a05eaf33f9f1b9ce Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 28 Dec 2014 14:42:27 +0000 Subject: mdoc(7) already uses the mandoc(1) -Ios argument in the footer line when .Os has no argument, so do the same for man(7) when .TH has less than four arguments; there is no reason to treat both differently. Issue found following a question from Thomas Klausner . --- man_validate.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'man_validate.c') diff --git a/man_validate.c b/man_validate.c index 5688bb54..48f2ed5b 100644 --- a/man_validate.c +++ b/man_validate.c @@ -379,6 +379,8 @@ post_TH(CHKARGS) if (n && (n = n->next)) man->meta.source = mandoc_strdup(n->string); + else if (man->defos != NULL) + man->meta.source = mandoc_strdup(man->defos); /* TITLE MSEC DATE SOURCE ->VOL<- */ /* If missing, use the default VOL name for MSEC. */ -- cgit v1.2.3-56-ge451