groff-commit
[Top][All Lists]
Advanced

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

[groff] 07/23: groff_{hdtbl,mom}(7): Work around a bad idea.


From: G. Branden Robinson
Subject: [groff] 07/23: groff_{hdtbl,mom}(7): Work around a bad idea.
Date: Mon, 21 Mar 2022 03:44:54 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit d8c522bc3b9717f8c8b6a6103c1c58403f5c18bc
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Mar 19 20:54:33 2022 +1100

    groff_{hdtbl,mom}(7): Work around a bad idea.
    
    Temporarily remap `-` to `\-` inside examples using the hyphen-minus for
    ASCII art.
    
    These examples should be refactored.
---
 contrib/hdtbl/groff_hdtbl.7.man | 12 ++++++++++++
 contrib/mom/groff_mom.7.man     |  2 ++
 2 files changed, 14 insertions(+)

diff --git a/contrib/hdtbl/groff_hdtbl.7.man b/contrib/hdtbl/groff_hdtbl.7.man
index 10328e98..0fd06c59 100644
--- a/contrib/hdtbl/groff_hdtbl.7.man
+++ b/contrib/hdtbl/groff_hdtbl.7.man
@@ -297,10 +297,12 @@ A terminal representation is
 .if t .ne 3v
 .RS
 .EX
+.tr -\-
 +------------------------------------------------------+
 .\" That's 27 spaces below.
 .RI "| " contents-of-the-table-cell "                           |"
 +------------------------------------------------------+
+.tr --
 .EE
 .RE
 .
@@ -353,11 +355,13 @@ A terminal representation is
 .if t .ne 5v
 .RS
 .EX
+.tr -\-
 +--------------------------+---------------------------+
 | 1*1                      | 1*2                       |
 +--------------------------+---------------------------+
 | 2*1                      | 2*2                       |
 +--------------------------+---------------------------+
+.tr --
 .EE
 .RE
 .
@@ -442,6 +446,7 @@ The first table looks like
 .if t .ne 7v
 .RS
 .EX
+.tr -\-
 +------------------------------------------------------+
 | 1*1 1*2                                              |
 +------------------------------------------------------+
@@ -449,6 +454,7 @@ The first table looks like
 | 2*1                         2*2                      |
 |                                                      |
 +------------------------------------------------------+
+.tr --
 .EE
 .RE
 .
@@ -461,11 +467,13 @@ and the second one like
 .if t .ne 5v
 .RS
 .EX
+.tr -\-
 +------------------------------------------------------+
 | 1*1 1*2                                              |
 +---------------------------+--------------------------+
 | 2*1                       | 2*2                      |
 +---------------------------+--------------------------+
+.tr --
 .EE
 .RE
 .
@@ -832,6 +840,7 @@ This looks like
 .if t .ne 7v
 .RS
 .EX
+.tr -\-
 +------------------------------+---------------+
 |          header1+2           |    header3    |
 +--------------+---------------+---------------+
@@ -839,6 +848,7 @@ This looks like
 +--------------+---------------+---------------+
 | 2*1          | 2*2+3                         |
 +--------------+-------------------------------+
+.tr --
 .EE
 .RE
 .
@@ -874,11 +884,13 @@ which looks like
 .if t .ne 5v
 .RS
 .EX
+.tr -\-
 +--------------+---------------+---------------+
 | 1*1          | 1+2*2         | 1*3           |
 +--------------+               +---------------+
 | 2*1          |               | 2*3           |
 +--------------+---------------+---------------+
+.tr --
 .EE
 .RE
 .RE
diff --git a/contrib/mom/groff_mom.7.man b/contrib/mom/groff_mom.7.man
index 845d6167..0f0e3e67 100644
--- a/contrib/mom/groff_mom.7.man
+++ b/contrib/mom/groff_mom.7.man
@@ -2492,10 +2492,12 @@ The
 macro would look like this:
 .RS
 .EX
+.tr -\-
 \f[CB].PAGE 11i 17i 1i 1i 1.5i
                  |   |
 required right---+   +---top margin
         margin\f[R]
+.tr --
 .EE
 .RE
 .



reply via email to

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