gbranden pushed a commit to branch master
in repository groff.
commit bcb8e2e2c8a0a97f99d78cd80bdd5e48ce2a00c8
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Oct 20 13:48:50 2025 -0500
[man]: Work around formatter issue.
* tmac/an.tmac (an*end-hyperlink): Work around apparently overpowered--
or buggy--`chop` request. Annotate landmine.
---
ChangeLog | 5 +++++
tmac/an.tmac | 10 +++++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 795f4b763..42a19c145 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-10-20 G. Branden Robinson <[email protected]>
+
+ * tmac/an.tmac (an*end-hyperlink): Work around apparently
+ overpowered--or buggy--`chop` request. Annotate landmine.
+
2025-10-20 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (charinfo::dump): Drop duplicate line
diff --git a/tmac/an.tmac b/tmac/an.tmac
index a3c4aadf2..ce0203a8e 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1226,7 +1226,15 @@ contains unsupported escape sequence
. chop an*link-text
. as an*link-text \&\c
. an*link-text
-. nop \"
+\" This is deliberately a blank line with a comment.
+.\" XXX: We would use the `nop` request here to put a break on the
+.\" output (with nice indentation to boot), but interpolating a chopped
+.\" diversion, even with a string appendment manipulates the input
+.\" parser a little too powerfully, and the formatter thinks ".nop"
+.\" appears on the input line literally after the `\c` at the end of
+.\" `an*link-text`. (We need that `\c`, else multiple tests fail.)
+.\" String/macro/diversion manipulation needs closer attention in the
+.\" formatter.
. if '\*[.T]'html' \
. nop \X'html:</a>'\c
. if \\n[an*is-output-terminal] \
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit