groff-commit
[Top][All Lists]
Advanced

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

[groff] 11/40: [me]: Slightly refactor.


From: G. Branden Robinson
Subject: [groff] 11/40: [me]: Slightly refactor.
Date: Sat, 5 Feb 2022 12:58:04 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit bead61d87ec685c61f8ff8257da112240d5b6b8b
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Feb 2 04:01:53 2022 +1100

    [me]: Slightly refactor.
    
    * tmac/e.tmac (@h): Use groff default scaling operator in conditional
      expression.  Add `do` requests so that the logic for checking the line
      length works in compatibility mode.  Also move misplaced parenthesis
      in conditional expression.
---
 ChangeLog   | 9 +++++++++
 tmac/e.tmac | 4 ++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e9d56443..6ac9af47 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-02-02  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [me]: Slightly refactor.
+
+       * tmac/e.tmac (@h): Use groff default scaling operator in
+       conditional expression.  Add `do` requests so that the logic for
+       checking the line length works in compatibility mode.  Also move
+       misplaced parenthesis in conditional expression.
+
 2022-02-02  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [ms]: Refactor insufficient page length check.
diff --git a/tmac/e.tmac b/tmac/e.tmac
index fc6332a2..9039ea30 100644
--- a/tmac/e.tmac
+++ b/tmac/e.tmac
@@ -274,8 +274,8 @@
 .
 .de @h                 \" --- header
 .if \n@>1 .tm >> @h %=\\n% ?a=\\n(?a ?b=\\n(?b ?w=\\n(?w
-.if (\\n(.i+\\n(.o)>=\\n(.l \
-.      @err page offset plus indentation exceeds line length
+.do if (u;\\n(.i+\\n(.o>=\\n(.l) \
+.      do @err page offset plus indentation exceeds line length
 .\" initialize a pile of junk
 .nr ?h \\n(?H                  \" transfer "next page" to "this page"
 .nr ?H 0



reply via email to

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