gbranden pushed a commit to branch master
in repository groff.
commit 89b722a90c6ecfaba234882f3eb76ff4284d3e77
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Mar 29 01:25:41 2022 +1100
tmac/an.tmac (an*bookmark): Trivially refactor.
* tmac/an.tmac (an*bookmark): Trivially refactor. Now that we're no
longer doing arithmetic on our first argument, simplify our
definition. Made possible by commit 3baf0e2f3, 23 February.
---
ChangeLog | 6 ++++++
tmac/an.tmac | 6 +-----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4b47b67e..a5b75d1d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-03-29 G. Branden Robinson <[email protected]>
+
+ * tmac/an.tmac (an*bookmark): Trivially refactor. Now that
+ we're no longer doing arithmetic on our first argument, simplify
+ our definition. Made possible by commit 3baf0e2f3, 23 February.
+
2022-03-29 G. Branden Robinson <[email protected]>
* src/preproc/preconv/preconv.cpp (detect_file_encoding): Demote
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 77e33c39..573d0597 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -193,11 +193,7 @@
.
.\" Write a bookmark/anchor/link target $2 at hierarchical depth $1.
.de an*bookmark
-. if '\\*[.T]'pdf' \{\
-. nr an*bookmark-depth \\$1
-. pdfbookmark \\n[an*bookmark-depth] \\$2
-. rr an*bookmark-depth
-. \}
+. if '\\*[.T]'pdf' .pdfbookmark \\$1 \\$2
..
.
.\" Begin man page.
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit