[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [groff] Odd indentation in -ms using .IP after .SH 1 with .nr PSINC
From: |
Ralph Corderoy |
Subject: |
Re: [groff] Odd indentation in -ms using .IP after .SH 1 with .nr PSINC 3p |
Date: |
Sun, 19 Aug 2018 11:01:47 +0100 |
Hi Tadziu,
> Here's a patch to fix the problem, but I'm not entirely happy with it
> since it feels like it is usurping ms's chain of command. On the
> other hand, I'm not sure a clean solution exists short of rewriting a
> large part of ms's internals.
Agreed. /usr/heirloom/lib/doctools/tmac/s makes an easier job of it.
Its `IP' calls `RT' first, and `RT' does `.ft 1'.
. \" IP - indented paragraph
.de IP
.RT
.if \\n(1T .sp \\n(PDu
.ne 1.1
.if !\\n(IP .nr IP +1
.if \\n(.$-1 .nr I\\n(IR \\$2n
.in +\\n(I\\n(IRu
.ta \\n(I\\n(IRu
.if \\n(.$ \{\
.ds HT \&\\$1
.ti -\\n(I\\n(IRu
\\*(HT\t\c
.if \w\\*(HTu>(\\n(I\\n(IRu+1n) .br
.\}
..
--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy