groff-commit
[Top][All Lists]
Advanced

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

[groff] 12/15: tmac/an-old.tmac: Improve internal symmetry.


From: G. Branden Robinson
Subject: [groff] 12/15: tmac/an-old.tmac: Improve internal symmetry.
Date: Wed, 19 May 2021 11:00:40 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit a612d6500d6921f32dc5b8f8f4fc32f82bfe41d2
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu May 20 00:33:31 2021 +1000

    tmac/an-old.tmac: Improve internal symmetry.
    
    * tmac/an-old.tmac (an-footer): Improve symmetry with an-header.  If
      rendering to HTML, don't bother setting the an-outer-footer-text,
      an-extra1, and an-extra2 strings to empty values; instead don't call
      BT, just as we don't call PT in an-header.
---
 ChangeLog        | 8 ++++++++
 tmac/an-old.tmac | 6 ++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6881ac8..5f88059 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-05-20  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/an-old.tmac (an-footer): Improve symmetry with an-header.
+       If rendering to HTML, don't bother setting the
+       an-outer-footer-text, an-extra1, and an-extra2 strings to empty
+       values; instead don't call BT, just as we don't call PT in
+       an-header.
+
 2021-05-19  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * tmac/an-old.tmac (an-end): Drop needless .nr % assignment.
diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index 3467230..1747728 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -311,9 +311,7 @@
 .  vs \\n[VS]u
 .  lt \\n[LT]u
 .  ie \\n[an-is-output-html] \{\
-.    ds an-outer-footer-text \" empty
-.    ds an-extra1 \" empty
-.    ds an-extra2 \" empty
+.    tl ''''
 .  \}
 .  el \{\
 .    ie \\n[cR] \
@@ -327,8 +325,8 @@
 .        \}
 .      \}
 .    \}
+.    BT
 .  \}
-.  BT
 .  ev
 ..
 .



reply via email to

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