Re: managing tagged paragraphs (was: [PATCH 2/2] ioctl_pagemap_scan: add page for pagemap_scan IOCTL)

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

 



Hi Branden,

On Sat, Oct 28, 2023 at 01:07:03PM -0500, G. Branden Robinson wrote:
> At 2023-10-28T18:22:52+0200, Alejandro Colomar wrote:
> > I meant to ask if modifying RS's behavior to not break after TP was
> > something you'd consider viable.
> 
> Ahh.  Hmm.  Can you show me an exhibit of desired output?

I'd like both sections to be identical in the following page (with the
behavior of the first one).


$ cat RS.man 
.TH RS 7 to-morrow Alex
.SH Continuing TP with IP
.TP
tag
First paragraph.
.IP
Second paragraph.
.SH Continuing TP with RS
.TP
tag
.RS
First paragraph.
.PP
Second paragraph.
.RE


$ MANWIDTH=72 man ./RS.man | cat
RS(7)              Miscellaneous Information Manual              RS(7)

Continuing TP with IP
     tag    First paragraph.

            Second paragraph.

Continuing TP with RS
     tag
            First paragraph.

            Second paragraph.

Alex                           to‐morrow                         RS(7)

> 
> > $ MANWIDTH=82 man groff_man_style | wc
> >    1442   10152   81154
> > $ MANWIDTH=83 man groff_man_style | wc
> >    1435   10156   80990
> 
> Only thing I can guess here is that man-db man(1) runs sandboxed and so
> might not be running a groff from $HOME.

Heh, I've managed to reproduce it!  It seems I run that thing just
before installing groff from git in this computer:

$ /usr/bin/groff --version | head -n1
GNU groff version 1.23.0
$ /usr/local/bin/groff --version | head -n1
GNU groff version 1.23.0.497-e982
$ MANROFFOPT=--version man man | head -n1
GNU nroff (groff) version 1.23.0.497-e982
$ PATH=/usr/bin
$ MANROFFOPT=--version man man | head -n1
GNU nroff (groff) version 1.23.0
$ MANWIDTH=80 man groff_man_style | wc
   1439    9943   81331


> 
> > Me too.  I remember my promise to review it; I'm just very slow; even
> > slower than sloppy recuriters.
> 
> I had no idea such a low speed was possible.

I've taken an entire year to read the Picture of Dorian Gray, if that
gives you an idea.  :D

Cheers,
Alex

-- 
<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