groff-commit
[Top][All Lists]
Advanced

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

[groff] 07/15: [man]: Ignore P and X registers if cR is also set.


From: G. Branden Robinson
Subject: [groff] 07/15: [man]: Ignore P and X registers if cR is also set.
Date: Wed, 19 May 2021 11:00:38 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit ec9132eb5c6d03cb59ed87ff0df1a5fb65c3caa1
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed May 19 20:52:15 2021 +1000

    [man]: Ignore P and X registers if cR is also set.
    
    * tmac/an-old.tmac (initialization): Ignore P and X rendering parameter
      registers if specified with continuous rendering enabled (the default
      in the nroff mode used for terminals), and emit diagnostic.
---
 ChangeLog        |  7 +++++++
 tmac/an-old.tmac | 18 +++++++++++++-----
 2 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 65769e6..68bf15a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2021-05-19  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * tmac/an-old.tmac (initialization): Ignore P and X rendering
+       parameter registers if specified with continuous rendering
+       enabled (the default in the nroff mode used for terminals), and
+       emit diagnostic.
+
+2021-05-19  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * tmac/tests/an-old_X-register-works.sh: Rewrite.  Increase test
        coverage and stop assuming that -rcR=1 and -rX=anything is a
        supported combination.  (Continuous rendering is supposed to
diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index e2dfef3..cf637d4 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -897,14 +897,18 @@
 .\" starting page number
 .\"
 .\" Unlike most of these parameters, we do not set a default for P;
-.\" groff supplies a default starting page number (1).  Also, when
-.\" rendering for the HTML output device, page numbers are concealed and
-.\" used for internal purposes like image embedding.
+.\" groff supplies a default starting page number (1).  When rendering
+.\" for the HTML output device, page numbers are concealed and used for
+.\" internal purposes like image embedding.  Page numbers are not
+.\" rendered at all in continuous rendering mode.
 .\"
-.if r P \
+.if r P \{\
 .  if \n[an-is-output-html] \
 .    if !(\n[P] = 1) \
 .      ds an-msg in HTML output\"
+.  if \n[cR] \
+.    ds an-msg when continuously rendering
+.\}
 .if d an-msg \{
 .  tm \*[an-old]: ignoring starting page number \*[an-msg]
 .  rr P
@@ -931,11 +935,15 @@
 .\" page number after which to apply letter suffixes
 .\"
 .\" Unlike most of these parameters, we do not set a default for X; only
-.\" the macro an-footer uses it.
+.\" the macro an-footer uses it.  Page numbers are not rendered at all
+.\" in continuous rendering mode.
+.\"
 .if r X \{\
 .  af an-page-letter a
 .  if \n[an-is-output-html] \
 .    ds an-msg in HTML output\"
+.  if \n[cR] \
+.    ds an-msg when continuously rendering
 .\}
 .if d an-msg \{
 .  tm \*[an-old]: ignoring page number suffix \*[an-msg]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]