[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 43/46: tmac/an-old.tmac (SH): Fix apparent thinko.
From: |
G. Branden Robinson |
Subject: |
[groff] 43/46: tmac/an-old.tmac (SH): Fix apparent thinko. |
Date: |
Sun, 18 Apr 2021 01:22:34 -0400 (EDT) |
gbranden pushed a commit to branch dev-gropdf-boxes
in repository groff.
commit c0193e5cd7be6f6eb19b8e30ff61f4b62a9ecdaa
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Apr 17 11:38:00 2021 +1000
tmac/an-old.tmac (SH): Fix apparent thinko.
Pass the devtags macro a literal "1" argument. Passing it \n[an-level]
wasn't correct (it stores the relative inset level, not a sectioning
level), and was useless anyway: SH has already called .an-set-margin by
this point, which resets \n[an-level] to 1. man(7) does not support
nesting of SH macros. Also call .DEVTAG-NH by its alias .DEVTAG-SH
since section headings are not numbered in man(7).
---
ChangeLog | 11 +++++++++++
tmac/an-old.tmac | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 113a5ff..be37277 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2021-04-17 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * tmac/an-old.tmac (SH): Fix apparent thinko. Pass the devtags
+ macro a literal "1" argument. Passing it \n[an-level] wasn't
+ correct (it stores the relative inset level, not a sectioning
+ level), and was useless anyway: SH has already called
+ .an-set-margin by this point, which resets \n[an-level] to 1.
+ man(7) does not support nesting of SH macros. Also call
+ .DEVTAG-NH by its alias .DEVTAG-SH since section headings are
+ not numbered in man(7).
+
2021-04-15 G. Branden Robinson <g.branden.robinson@gmail.com>
[tmac]: Adjust editor file encoding hints.
diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index ba1ad64..96ce559 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -317,7 +317,7 @@
. in \\n[an-margin]u
. ti 0
. nr need_eo_h 1
-. DEVTAG-NH \\n[an-level]
+. DEVTAG-SH 1
. itc 1 an-trap
. nr an-no-space-flag 1
. nr an-break-flag 1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 43/46: tmac/an-old.tmac (SH): Fix apparent thinko.,
G. Branden Robinson <=