groff-commit
[Top][All Lists]
Advanced

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

[groff] 20/53: tmac/e.tmac: Fix groff warnings.


From: G. Branden Robinson
Subject: [groff] 20/53: tmac/e.tmac: Fix groff warnings.
Date: Tue, 14 Dec 2021 01:21:52 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit ad0575f20a13ca3b7e13c0697a0d1548915ca98b
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Dec 9 10:46:40 2021 +1100

    tmac/e.tmac: Fix groff warnings.
    
    * tmac/e.tmac: Fix groff warnings and correctness issue.
    
      (n2): Prefix `ie` request with `do` because it uses the groff `\B`
      escape sequence.  Use braces to group multiple requests after an `el`
      request: `ie` and `el` count as two requests, not one.  Add comment
      regarding the unfortunate choice of brace style given *roff's
      syntactical constraints.
    
      (n2, (c): Conceal bare tab in request argument list (exposed by no
      longer stripping the macro file).
---
 ChangeLog   | 11 +++++++++++
 tmac/e.tmac | 11 +++++++----
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6d72490..fbea733 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2021-12-09  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/e.tmac: Fix groff warnings and correctness issue.
+       (n2): Prefix `ie` request with `do` because it uses the groff
+       `\B` escape sequence.  Use braces to group multiple requests
+       after an `el` request: `ie` and `el` count as two requests, not
+       one.  Add comment regarding the unfortunate choice of brace
+       style given *roff's syntactical constraints.
+       (n2, (c): Conceal bare tab in request argument list (exposed by
+       no longer stripping the macro file).
+
 2021-12-08  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * tmac/e.tmac: Slightly refactor footnote numbering.
diff --git a/tmac/e.tmac b/tmac/e.tmac
index ecd5611..bbb0353 100644
--- a/tmac/e.tmac
+++ b/tmac/e.tmac
@@ -587,7 +587,7 @@
 .              po -\w'0000'u
 .      el \
 .              ll -\w'0000'u
-.      ie \\B`\\$1` \
+.      do ie \\B`\\$1` \
 \{\
 .              ds |i \\$1
 .              ds |j \\$1
@@ -595,14 +595,17 @@
 .              \" Pick off leading char and rest to check.
 .              do substring |i 0 0  \"
 .              do length |l \\$1
-.              if \\n(|l>1 .do substring |j 1  \" for +N / -N
+.              if \\n(|l>1 .do substring |j 1\"        \" for +N / -N
 .              ie `\\*(|i`+` \
 .                      do nr ln (\\n[_ln])+\\*(|j
+.\" This file's brace style doesn't permit indentation of \{. --GBR
 .              el \
+\{\
 .                      ie `\\*(|i`-` \
 .                              do nr ln (\\n[_ln])-\\*(|j
 .                      el \
-.                              nr ln \\$1  \" unsigned N
+.                              nr ln \\$1      \" unsigned N
+.              \}
 .              do nr _#p \\n(.s
 .              do nr _#f \\n(.f
 .              nm \\n(ln
@@ -1106,7 +1109,7 @@
 .if \\n(?n .nm
 .if ``\\n(.z` \
 \{\
-.      @C 1            \" Ensure env. set up for centering in open text
+.      @C 1\"          \" Ensure env. set up for centering in open text
 .      ev
 .\}
 .di |c



reply via email to

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