groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/01: Fixes footer printing at top of second page instead of he


From: Peter Schaffter
Subject: [groff] 01/01: Fixes footer printing at top of second page instead of header when using HEADERS_AND_FOOTERS.
Date: Thu, 21 Apr 2016 00:21:58 +0000

PTPi pushed a commit to branch master
in repository groff.

commit 57d86f061ad3d28922a8702288a1a9557870ba44
Author: Peter Schaffter <address@hidden>
Date:   Wed Apr 20 20:20:05 2016 -0400

    Fixes footer printing at top of second page instead of header when
    using HEADERS_AND_FOOTERS.
---
 contrib/mom/BUGS      |    6 ++++++
 contrib/mom/om.tmac-u |   12 +++++++-----
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/contrib/mom/BUGS b/contrib/mom/BUGS
index 0e273d2..ca3c71b 100644
--- a/contrib/mom/BUGS
+++ b/contrib/mom/BUGS
@@ -22,6 +22,12 @@ Also, please--no html email.  That, too, gets nuked.
 
 ====================================================================
 
+Version 2.1-b
+=============
+HEADERS_AND_FOOTERS printing footer at top of second page instead of
+printing header unless FOOTER_ON_FIRST_PAGE is called.
+---Fixed---
+
 Version 2.1-a
 =============
 
diff --git a/contrib/mom/om.tmac-u b/contrib/mom/om.tmac-u
index 540dd54..330d2a1 100644
--- a/contrib/mom/om.tmac-u
+++ b/contrib/mom/om.tmac-u
@@ -21,8 +21,8 @@ for more details.
 You should have received a copy of the GNU General Public License
 along with this program. If not, see <http://www.gnu.org/licenses/>.
 
-Version 2.1-b
--------------
+Version 2.1-b_1
+---------------
 Antoine de St-Exup�ry asserted that elegance in engineering is
 achieved not when there is nothing left to add, but when there is
 nothing left to take away.
@@ -9078,8 +9078,8 @@ $\\*[DOC_]COVERTITLE_\\n+[#\\*[DOC_]COVERTITLE_NUM] 
\\$\\n[#\\*[DOC_]COVERTITLE_
 \#   For use when users don't want 3-part headers/footers, but rather
 \#   want to design their own headers/footers and need different
 \#   headers/footers on recto and verso pages.  Using just
-\#   HEADER_RECTO, even when recto/verso is not on, allows users to
-\#   design their own headers/footers for doc pages.
+\#   HEADER_RECTO or FOOTER_RECTO, even when recto/verso is not on,
+\#   allows users to design their own headers/footers for doc pages.
 \#
 .MAC HDRFTR_RECTO END
 .    nr #USERDEF_HDRFTR 1
@@ -9177,7 +9177,7 @@ $\\*[DOC_]COVERTITLE_\\n+[#\\*[DOC_]COVERTITLE_NUM] 
\\$\\n[#\\*[DOC_]COVERTITLE_
 .             ie !\\n[#HDRFTR_BOTH] .return
 .             el \{\
 .                rr #FOOTERS_ON
-.                nr #HEADERS_ON 1
+.                if !\\n[#COLLATE] .nr #HEADERS_ON 1
 .                ie \\n[#HEADER_RULE]=1 .HEADER_RULE
 .                el .HEADER_RULE OFF
 .                ie \\n[#HDRFTR_BOTH] .HEADER_VERSO \\*[$HDR_VERSO_QUAD] 
"\\*[$HDR_VERSO_STRING]"
@@ -10043,6 +10043,8 @@ $\\*[DOC_]COVERTITLE_\\n+[#\\*[DOC_]COVERTITLE_NUM] 
\\$\\n[#\\*[DOC_]COVERTITLE_
 .    \}
 .    ie \\n[#FOOTERS_ON] \{\
 .       if !\\n[#SKIP_FOOTER]>0 .PRINT_HDRFTR
+.       if \\n[#HDRFTR_BOTH] \
+.          HEADER_RECTO \\*[$HDR_RECTO_QUAD] "\\*[$HDR_RECTO_STRING]"
 .    \}
 .    el \{\
 .       if \\n[#PAGINATE] \{\



reply via email to

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