[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 37/40: [man]: Trivially refactor.
From: |
G. Branden Robinson |
Subject: |
[groff] 37/40: [man]: Trivially refactor. |
Date: |
Sat, 12 Nov 2022 14:43:40 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit f8c03c5cfe15150477749c09bdb8fac9a9ba978e
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Nov 12 07:43:42 2022 -0600
[man]: Trivially refactor.
* tmac/an.tmac: Trivially refactor. Rename `an-section` to
`an*section`.
Also replace useless recapitulation of file name in opening comment.
---
ChangeLog | 5 +++++
tmac/an.tmac | 12 ++++++------
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d59b30a3d..1eb12282b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-11-12 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * tmac/an.tmac: Trivially refactor. Rename `an-section` to
+ `an*section`.
+
2022-11-12 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/devices/grolbp/lbp.cpp (usage): Tweak usage message. The
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 1d6e484cf..122d1db52 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1,4 +1,4 @@
-.\" an.tmac
+.\" groff implementation of man(7) package
.\"
.\" Copyright (C) 1989-2022 Free Software Foundation, Inc.
.\" Written by James Clark (jjc@jclark.com)
@@ -278,7 +278,7 @@
.
. ds an*topic "\\$1\"
. if \\n[CT] .stringup an*topic
-. ds an-section "\\$2\"
+. ds an*section "\\$2\"
. ie (\\n[.$] > 4) .ds an-extra3 "\\$5\"
. el \{\
. \" Simulate switch/case in roff.
@@ -446,8 +446,8 @@
. ds an-ellipsis \|.\|.\|.\|\"
. \" an*page-ref-string is left unmodified for internal use, such as
. \" PDF bookmarks.
-. ds an*page-ref-string \\*[an*topic](\\*[an-section])\"
-. ds an-pageref \\*[an*topic-abbv](\\*[an-section])\"
+. ds an*page-ref-string \\*[an*topic](\\*[an*section])\"
+. ds an-pageref \\*[an*topic-abbv](\\*[an*section])\"
. nr an-header-width \\w'\\*[an-pageref]\\*[an-extra3]\\*[an-pageref]'
. while (\\n[an-header-width] >= \\n[.lt]) \{\
. \" The page topic is too long; trim some bits out of the middle.
@@ -470,12 +470,12 @@
. length an*topic-new-length \\*[an*topic-string]
. ie (\\n[an*topic-new-length] >= \\n[an*topic-length]) \
. break
-. ds an-pageref \\*[an*topic-abbv](\\*[an-section])\"
+. ds an-pageref \\*[an*topic-abbv](\\*[an*section])\"
. nr an-header-width \
\\w'\\*[an-pageref]\\*[an-extra3]\\*[an-pageref]'
. \}
. ds an-pageref \\*[an-lic]\f[\\*[MF]]\\*[an*topic-abbv]\\*[an-ic]\
-\f[R](\\*[an-section])\"
+\f[R](\\*[an*section])\"
. rr an*topic-length-prev
. rr an-mark1
. rr an-mark2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 37/40: [man]: Trivially refactor.,
G. Branden Robinson <=