Christian Weisgerber wrote on Sat, Apr 03, 2010 at 03:11:26AM +0200:

> textproc/sgmlformat
>   instant.1:0:1: error: document has no title/section
> x11/sclock
>   sclock.1:0:1: error: document has no title/section

Are these really man(7) pages without a .TH header macro?
Must have a look later...

In any case, this issue need not be fatal.
When we have no title, why not just use "unknown" and prod on?
For mdoc(7), mandoc(1) already does something similar in one place.

Kristaps, OK?


Remaining:

> misc/omconsole
>   omconsole.1:36:5: error: requires line arguments > 0 (has 0)
> net/bluetooth-tools
>   btkey.1:123:2: error: bad child for parent context
> net/openvpn_bsdauth
>   openvpn_bsdauth.8:22:16: error: multi-line scope breaks multi-line
>   scope of Xo
> net/ipcalc
>   ipcalc.1:70:2: error: multi-line scope breaks multi-line scope of It
> sysutils/pftop
>   pftop.8:146:2: error: multi-line scope breaks multi-line scope of It
> sysutils/login_ldap
>   login_ldap.8:283:2: error: multi-line scope breaks multi-line scope of
>   It
> sysutils/login_fingerprint
>   login_fingerprint.8:72:2: error: multi-line scope breaks multi-line
>   scope of It


--- man_validate.c.00   Fri Apr  2 13:37:07 2010
+++ man_validate.c      Sat Apr  3 16:52:37 2010
@@ -163,8 +163,11 @@ check_root(CHKARGS) 
 
        if (NULL == m->first->child)
                return(man_nerr(m, n, WNODATA));
-       if (NULL == m->meta.title)
-               return(man_nerr(m, n, WNOTITLE));
+       if (NULL == m->meta.title) {
+               if ( ! man_nwarn(m, n, WNOTITLE))
+                       return(0);
+               m->meta.title = mandoc_strdup("unknown");
+       }
 
        return(1);
 }

Reply via email to