groff-commit
[Top][All Lists]
Advanced

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

[groff] 04/10: [man]: Trivially refactor.


From: G. Branden Robinson
Subject: [groff] 04/10: [man]: Trivially refactor.
Date: Thu, 7 Apr 2022 19:03:10 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 2297fedfc96ee45f98a5caf7ff497bda764d0120
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Apr 8 05:36:44 2022 +1000

    [man]: Trivially refactor.
    
    * tmac/an.tmac: Trivially refactor.
      (an*prepare-page-title): Rename this...
      (an*abbreviate-page-title): ...to this.
    
      (an-prepare-inner-footer): And this...
      (an*abbreviate-inner-footer): ...to this.
    
      (an-header, an-footer): Update call sites.
---
 ChangeLog    |  9 +++++++++
 tmac/an.tmac | 10 +++++-----
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4e8ffd0e..ee9147b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-04-08  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/an.tmac: Trivially refactor.
+       (an*prepare-page-title): Rename this...
+       (an*abbreviate-page-title): ...to this.
+       (an-prepare-inner-footer): And this...
+       (an*abbreviate-inner-footer): ...to this.
+       (an-header, an-footer): Update call sites.
+
 2022-04-08  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/preproc/eqn/other.cpp (hmotion_box::output): Fix typo in
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 573d0597..91f152ec 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -415,7 +415,7 @@
 .\" string an-pageref defined for use in .PT and .an-footer.  Also
 .\" leaves an-title-abbv for possible use by .PT and .BT re-definers.
 .\" Call this only from within the header/footer environment.
-.de an*prepare-page-title
+.de an*abbreviate-page-title
 .  ds an-title-abbv \\*[an-title]\" might not get abbreviated at all
 .  ds an-title-string \\*[an-title]\"
 .  ds an-ellipsis \|.\|.\|.\|\"
@@ -466,12 +466,12 @@
 .\" the footer.  By default, `an-extra2` is placed as the inner footer.
 .\" We call it `an-ifoot` here and leave it defined for .BT use.
 .\"
-.\" The method here differs from an-prepare-header, because the
+.\" The method here differs from an*abbreviate-page-title, because the
 .\" (default) header is symmetrical, with `an-pageref` on both sides,
 .\" whereas the (default) footer is not.  Our approach is to chop
 .\" `an-extra1` (the default center footer) in half and ensure that the
 .\" formatted `an-ifoot` plus that is less than half the title length.
-.de an-prepare-inner-footer
+.de an*abbreviate-inner-footer
 .  ds an-half-cfoot \\*[an-extra1]\"
 .  length an-half-cfoot-length \\*[an-half-cfoot]
 .  if \\n[an-half-cfoot-length] \{\
@@ -530,7 +530,7 @@
 .  ps \\n[PS]u
 .  vs \\n[VS]u
 .  lt \\n[LT]u
-.  an*prepare-page-title
+.  an*abbreviate-page-title
 .  PT
 .  ev
 .  ns
@@ -560,7 +560,7 @@
 .      \}
 .    \}
 .  \}
-.  an-prepare-inner-footer
+.  an*abbreviate-inner-footer
 .  BT
 .  rm an-outer-footer-text
 .  ev



reply via email to

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