[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: groff now undoing .ad settings after .IP
From: |
G. Branden Robinson |
Subject: |
Re: groff now undoing .ad settings after .IP |
Date: |
Fri, 15 Mar 2024 15:40:38 -0500 |
At 2024-03-15T13:53:42-0500, G. Branden Robinson wrote:
> Can you name me a misbehaving perlpod(1)-generated page? I'll check
> it out. Perhaps what I really needed here was:
Yup.
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 2b1789741..b4710e23a 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -700,7 +700,8 @@ .de1 an-input-trap
.de1 an*TP-trap
. br
. di
-. ad \\*[AD]
+. ad \\n[an*saved-adjustment-mode]
+. rr an*saved-adjustment-mode
. ll
. if \\n[an*have-paragraph-tag] .an-write-paragraph-tag
..
@@ -842,6 +843,7 @@ .de1 TP
. itc 1 an-input-trap
. in 0
. ll -\\n[an-margin]u
+. nr an*saved-adjustment-mode \\n[.j]
. di an*paragraph-tag
. na
..
All _existing_ tests continue to pass, and pod2man(1) renders as
desired now (and as groff 1.22.4 did, in this respect). I'll commit
this. And add a regression test.
Regards,
Branden
signature.asc
Description: PGP signature
Re: groff now undoing .ad settings after .IP, Russ Allbery, 2024/03/16
Re: groff now undoing .ad settings after .IP, Frederic Chartier, 2024/03/18
Re: groff now undoing .ad settings after .IP, G. Branden Robinson, 2024/03/18
Re: groff now undoing .ad settings after .IP, Dave Kemper, 2024/03/19