gbranden pushed a commit to branch master
in repository groff.

commit af73b5aed6fe38af4aaa8a1c32cd951e6104ad4e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jul 14 11:08:00 2026 -0500

    doc/groff-pdf-features.ms: Be more portable. (3/5)
    
    Make page-local `PN` nilpotent on non-"pdf" output devices.
---
 doc/groff-pdf-features.ms | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/doc/groff-pdf-features.ms b/doc/groff-pdf-features.ms
index 81679a1e9..5b37b39fa 100644
--- a/doc/groff-pdf-features.ms
+++ b/doc/groff-pdf-features.ms
@@ -69,13 +69,15 @@
 .  nop \&\\$2
 ..
 .de PN
-.  ev Pn
-.  evc 0
-.  po .5c
-.  pdfnote \\$@
-.  fl
-.  po
-.  ev 0
+.  if '\*[.T]'pdf' \{\
+.    ev Pn
+.    evc 0
+.    po .5c
+.    pdfnote \\$@
+.    fl
+.    po
+.    ev 0
+.  \}
 ..
 .ds = \f(CB\\$1\f(CR\\$4\f[CBI]\\$2\f(CR\\$3
 .\" TODO: We need `UR`/`UE` macros for ms(7).  See "tmac/an.tmac".

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to