groff-commit
[Top][All Lists]
Advanced

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

[groff] 28/28: [mdoc]: Set usekeeps register used by tbl(1).


From: G. Branden Robinson
Subject: [groff] 28/28: [mdoc]: Set usekeeps register used by tbl(1).
Date: Sat, 19 Jun 2021 17:24:16 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 1276643049b9e297651a1a6403f3463daa797713
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Jun 19 23:25:02 2021 +1000

    [mdoc]: Set usekeeps register used by tbl(1).
    
    * tmac/mdoc/doc-nroff-u: Set the usekeeps register used by tbl to the
      logical complement of the cR (continuous rendering) register.  This
      prevents blank lines from creeping into tables in that mode.
    
    Exposed by 971dc619 (earlier today).
---
 ChangeLog             | 7 +++++++
 tmac/mdoc/doc-nroff-u | 6 ++++++
 2 files changed, 13 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 934d22b..4dbc7d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2021-06-19  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * tmac/mdoc/doc-nroff-u: Set the usekeeps register used by tbl
+       to the logical complement of the cR (continuous rendering)
+       register.  This prevents blank lines from creeping into tables
+       in that mode.
+
+2021-06-19  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * tmac/an-old.tmac (an-blank-line-trap, an-leading-space-trap):
        We say in a comment, "Macros ... that are called by traps of any
        kind must be defined with `de1` because they might be called
diff --git a/tmac/mdoc/doc-nroff-u b/tmac/mdoc/doc-nroff-u
index f63c8f2..a7f6d8b 100644
--- a/tmac/mdoc/doc-nroff-u
+++ b/tmac/mdoc/doc-nroff-u
@@ -58,6 +58,12 @@
 .  el \
 .    nr HY 6
 .\}
+.
+.\" If continuous rendering, tell tbl not to use keeps.
+.ie \n[cR] \
+.  nr 3usekeeps 0
+.el \
+.  nr 3usekeeps 1
 .eo
 .
 .\" the following switch is ignored in nroff mode



reply via email to

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