groff-commit
[Top][All Lists]
Advanced

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

[groff] 04/07: [mdoc]: Space before footer as our man(7) does.


From: G. Branden Robinson
Subject: [groff] 04/07: [mdoc]: Space before footer as our man(7) does.
Date: Thu, 20 May 2021 01:23:17 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit e51af2a52fff97807143d20ee58d745105d237b6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu May 20 10:47:56 2021 +1000

    [mdoc]: Space before footer as our man(7) does.
    
    * 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 with our
      man(7) implementation.
    
    This was possibly an oversight in 058f72af8 (23 March 2001--the Great
    Groff Mdoc Rewrite); earlier in the macro the page length was already
    increased by 3v as if in anticipation of spacing by this amount.
---
 ChangeLog              | 7 +++++++
 tmac/mdoc/doc-common-u | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 859dc85..aa1dd69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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
+       with our man(7) implementation.
+
+2021-05-20  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        Add warnings for macros deprecated in groff_man(7), emitted if
        the CHECKSTYLE register is greater than 1.
 
diff --git a/tmac/mdoc/doc-common-u b/tmac/mdoc/doc-common-u
index 89ca77e..3d6cfb5 100644
--- a/tmac/mdoc/doc-common-u
+++ b/tmac/mdoc/doc-common-u
@@ -1024,7 +1024,7 @@
 .  doc-check-depth
 .
 .  if \n[cR] \{\
-.    sp
+.    sp 3v
 .    tl 
\*[doc-caption-font]\*[doc-operating-system]\f[]\*[doc-caption-font2]\*[doc-date-string]\f[]\*[doc-caption-font]\*[doc-operating-system]\f[]
 .    \" suppress empty lines after the footer
 .    pl \n[nl]u



reply via email to

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