groff-commit
[Top][All Lists]
Advanced

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

[groff] 03/05: tmac/an-old.tmac (SH): Fix apparent thinko.


From: G. Branden Robinson
Subject: [groff] 03/05: tmac/an-old.tmac (SH): Fix apparent thinko.
Date: Fri, 16 Apr 2021 22:44:12 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit c6ff0806d3ee86b540676cf2cce663444b5bf3a1
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



reply via email to

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