groff-commit
[Top][All Lists]
Advanced

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

[groff] 06/07: [man]: Further demystify -rCR=1 footer management.


From: G. Branden Robinson
Subject: [groff] 06/07: [man]: Further demystify -rCR=1 footer management.
Date: Thu, 20 May 2021 01:23:18 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 1b63f6cccd166ab60e34728196cc08b7aa66d47b
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu May 20 11:55:42 2021 +1000

    [man]: Further demystify -rCR=1 footer management.
    
    Slightly refactor footer spacing management when continuously rendering.
    
    * tmac/an-old.tmac (an-end): Increase the page length _after_ flushing a
      pending output line.  Do so only by the amount of spacing we actually
      perform next.  Make the scaling indicator on the .sp request explicit.
      The amount seemed magical because it was accounting for the one line
      to be consumed by output of the footer title line.  Instead, move that
      further increase of the page length from here...
    
      (an-footer): ...to here (~250 lines away), before calling BT.
---
 ChangeLog        | 14 ++++++++++++++
 tmac/an-old.tmac |  6 ++++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 980ae18..10d18fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
 2021-05-20  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       Slightly refactor footer spacing management when continuously
+       rendering.
+
+       * tmac/an-old.tmac (an-end): Increase the page length _after_
+       flushing a pending output line.  Do so only by the amount of
+       spacing we actually perform next.  Make the scaling indicator on
+       the .sp request explicit.  The amount seemed magical because it
+       was accounting for the one line to be consumed by output of the
+       footer title line.  Instead, move that further increase of the
+       page length from here...
+       (an-footer): ...to here (~250 lines away), before calling BT.
+
+2021-05-20  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * tmac/mdoc/doc-common-u (doc-end-macro): When continuously
        rendering and after flushing the last line of the body text of a
        page, vertically space by 3 vees instead of 1, for consistency
diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index a4e6b4a..654f7f5 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -96,9 +96,9 @@
 .\" pending output line and write the footer for the final man page
 .\" rendered.
 .de1 an-end
-.  pl +4v
 .  fl
-.  sp 3
+.  pl +3v
+.  sp 3v
 .  an-footer
 .  bp
 ..
@@ -350,6 +350,8 @@
 .        \}
 .      \}
 .    \}
+.    if \\n[cR] \
+.      pl +1v
 .    BT
 .  \}
 .  ev



reply via email to

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