Subject: Re: [bug#77387] [PATCH 2/2] man-db: Support mdoc-formatted man pages.

From: Ludovic Courtès <[email-masked]>
Date: Tue, 01 Apr 2025 14:08:31 +0200

Sergey Trofimov <[email-masked]> skribis:

> * guix/man-db.scm (man-page->entry): Extract man name and section from
> .Dt macro.
>
> Change-Id: I02dc99d73dceecdb077315805025efad9a650e91

[...]

>                    (match (if (string-prefix? "." line) (man-macro-tokenize line) #f)
> -                    ((".TH" name (= string->number section) _ ...)
> +                    (((or ".TH" ".Dt") name (= string->number section) _ ...)

Likewise, please add a short comment above the clause explaining that
‘.Dt’ is produced by ‘mandoc’ (did I get that right?).

Ludo’.