gbranden pushed a commit to branch master
in repository groff.

commit 29f5a0f6aa71ced1fa30ff373367d8ffe1cd3fb4
Author: Deri <d...@chuzzlewit.myzen.co.uk>
AuthorDate: Tue Apr 16 01:14:12 2024 +0100

    tmac/an.tmac: Fix computation of bookmark level.
    
    [If this register's value is specified on the command line, don't clobber
    it.  Adjust logic for assigning tag to the bookmark to the (possibly
    adjusted) base level accordingly. --GBR]
---
 tmac/an.tmac | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tmac/an.tmac b/tmac/an.tmac
index d9e8232f8..46934fd62 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -212,7 +212,7 @@
 .
 .\" Customize this at the command line to, for example, group multiple
 .\" man pages within a collection or containing document.
-.nr an*bookmark-base-level 0
+.nr an*bookmark-base-level \n[an*bookmark-base-level]+0
 .
 .\" Write a bookmark/anchor/link target $2 at hierarchical depth $1.
 .de an*bookmark
@@ -230,7 +230,8 @@
 .ds an*bookmark*utf8 \" empty
 .
 .de an*bookmark*pdf
-.  ie (\\$1 = 1) \
+.nr an:lev \\n[an*bookmark-base-level]+1
+.  ie (\\$1 = \\n[an:lev]) \
 .    pdfbookmark -T "\\$2" \\$1 \\$2
 .  el \
 .    pdfbookmark \\$1 \\$2

_______________________________________________
Groff-commit mailing list
Groff-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to