[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 22/51: [mdoc]: Set page ref in right footer if \n[cR].
From: |
G. Branden Robinson |
Subject: |
[groff] 22/51: [mdoc]: Set page ref in right footer if \n[cR]. |
Date: |
Sun, 11 Sep 2022 08:15:52 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 5e9c49e1fa5637630e296b6fe8c36b0b6e0acdeb
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Sep 6 20:17:33 2022 -0500
[mdoc]: Set page ref in right footer if \n[cR].
* tmac/mdoc/doc-common (doc-end-macro): When continuously rendering, set
the page reference (e.g., "ls(1)") in the right footer instead of
repeating the left footer. Thanks to Ingo Schwarze for the
discussion.
Fixes part of <https://savannah.gnu.org/bugs/?62926>.
---
ChangeLog | 12 ++++++++++++
tmac/mdoc/doc-common | 2 +-
tmac/tests/doc_smoke-test.sh | 2 +-
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 27f278c35..eefb4e6e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2022-09-06 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * tmac/mdoc/doc-common (doc-end-macro): When continuously
+ rendering, set the page reference (e.g., "ls(1)") in the right
+ footer instead of repeating the left footer. Thanks to Ingo
+ Schwarze for the discussion.
+
+ * tmac/tests/doc_smoke-test.sh: Update expectations of footer
+ regression test.
+
+ Fixes part of <https://savannah.gnu.org/bugs/?62926>.
+
2022-09-06 G. Branden Robinson <g.branden.robinson@gmail.com>
* tmac/mdoc/doc-common (doc-end-macro): Reset strings to reduce
diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
index 3d704fd98..5de25b0ab 100644
--- a/tmac/mdoc/doc-common
+++ b/tmac/mdoc/doc-common
@@ -1034,7 +1034,7 @@
. if \n[cR] \{\
. pl +1v
. sp 1v
-. tl
\*[doc-caption-font]\*[doc-operating-system]\f[]\*[doc-caption-font2]\*[doc-date-string]\f[]\*[doc-caption-font]\*[doc-operating-system]\f[]
+. tl
\*[doc-caption-font]\*[doc-operating-system]\f[]\*[doc-caption-font2]\*[doc-date-string]\f[]\*[doc-header-string]
. \" If we're processing multiple documents and have started a new
. \" one, draw a line between this footer and the next header.
. if !'\n[.F]'' \{\
diff --git a/tmac/tests/doc_smoke-test.sh b/tmac/tests/doc_smoke-test.sh
index b55f58462..a3d343253 100755
--- a/tmac/tests/doc_smoke-test.sh
+++ b/tmac/tests/doc_smoke-test.sh
@@ -62,7 +62,7 @@ then
echo "paragraph body check failed" >&2
fi
-if ! echo "$OUTPUT" | grep -qE '^GNU +August 25, 2020'
+if ! echo "$OUTPUT" | grep -qE '^GNU +August 25, 2020 +mdoc-test\(7\)'
then
FAIL=yes
echo "footer check failed" >&2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 22/51: [mdoc]: Set page ref in right footer if \n[cR].,
G. Branden Robinson <=