Re: [PATCH] man2/: SYNOPSIS: Use SY/YS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Branden,

On Sun, Dec 01, 2024 at 02:51:27PM -0600, G. Branden Robinson wrote:
> You can go ahead and use the second argument to `SY` now--older groffs
> (and other formatters) won't complain about it.[1]

Hmmm.  Actually, groff <= 1.23.0 is bad: it doesn't print $2.  See
below.

Cheers,
Alex


alx@devuan:~/tmp/groff$ cat foo.man 
.TH a s d f
.SH Name
f \- oo
.SH Foo
.SY f (
.B void);
.YS
alx@devuan:~/tmp/groff$ groff --version | head -n1
GNU groff version 1.22.4
alx@devuan:~/tmp/groff$ groff -man -Tutf8 ./foo.man
a(s)                                                                      a(s)



Name
       f - oo

Foo
       f void);



f                                      d                                  a(s)
alx@devuan:~/tmp/groff$ dpkg -l mandoc | grep mandoc
ii  mandoc         1.14.6-1+b1  amd64        BSD manpage compiler toolset
alx@devuan:~/tmp/groff$ mandoc -man -Tutf8 ./foo.man
a(s)                                                                      a(s)

Name
       f - oo

Foo
       f (
         void);

f                                      d                                  a(s)
alx@devuan:~/tmp/groff$ ssh www
alx@www:~$ cd /tmp/
alx@www:/tmp$ /usr/bin/groff --version | head -n1
GNU groff version 1.23.0
alx@www:/tmp$ /usr/bin/groff -man -Tutf8 ./foo.man 
a(s)                                                                      a(s)

Name
       f - oo

Foo
       f void);

f                                      d                                  a(s)




-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux