diff options
author | Colin Watson <cjwatson@debian.org> | 2002-11-27 00:40:38 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2002-11-27 00:40:38 +0000 |
commit | 4d90766cb5e4884fbb3b1c41c7b21982acbb22a2 (patch) | |
tree | 5bb35b0798c032c8e9fa8a1bf4399544a207a4da /man/man1/lexgrog.man1 | |
parent | 58f0fad943f5932c6143923f16c04043e6dd8ce8 (diff) |
* man/man1/lexgrog.man1 (WHATIS PARSING): Add an example of how NAME
sections should be written in mdoc.
Diffstat (limited to 'man/man1/lexgrog.man1')
-rw-r--r-- | man/man1/lexgrog.man1 | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/man/man1/lexgrog.man1 b/man/man1/lexgrog.man1 index 4bdf3e5b..bb77c9c3 100644 --- a/man/man1/lexgrog.man1 +++ b/man/man1/lexgrog.man1 @@ -113,16 +113,20 @@ While the parser is quite tolerant, as it has to cope with a number of different forms that have historically been used, it may sometimes fail to extract the required information. .PP -A correct +When using the traditional +.I man +macro set, a correct .B NAME section looks something like this: -.IP +.PP +.RS .ft CW .nf \&.SH NAME foo \e- program to do something .fi .ft P +.RE .PP Some manual pagers require the `\e-' to be exactly as shown; .B %mandb% @@ -134,7 +138,8 @@ The text on the right-hand side is free-form, and may be spread over multiple lines. If several features with different descriptions are being documented in the same manual page, the following form is therefore used: -.IP +.PP +.RS .ft CW .nf \&.SH NAME @@ -143,9 +148,26 @@ foo, bar \e- programs to do something baz \e- program to do nothing .fi .ft P +.RE .PP (A macro which starts a new paragraph, like \f(CW.PP\fP, may be used instead of the break macro \f(CW.br\fP.) +.PP +When using the BSD-derived +.I mdoc +macro set, a correct +.B NAME +section looks something like this: +.PP +.RS +.ft CW +.nf +\&.Sh NAME +\&.Nm foo +\&.Nd program to do something +.fi +.ft P +.RE There are several common reasons why whatis parsing fails. Sometimes authors of manual pages replace `.SH NAME' with `.SH MYPROGRAM', |