gbranden pushed a commit to branch master
in repository groff.

commit 3f73a69815e248e8dd9d9fb6917ec8e5ff3e4c2e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Oct 4 00:25:25 2025 -0500

    [man]: Don't auto hyphenate self-linked URIs.
    
    * tmac/an.tmac (an*end-hyperlink): Suppress automatic hyphenation when
      rendering a hyperlink as its own link text.
    
    Fixes a post-groff-1.23.0 regression (meaning the bug has only been
    observable in Git, not a groff release).
---
 ChangeLog    | 8 ++++++++
 tmac/an.tmac | 4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9cc092728..4806d5388 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-10-04  G. Branden Robinson <[email protected]>
+
+       * tmac/an.tmac (an*end-hyperlink): Suppress automatic
+       hyphenation when rendering a hyperlink as its own link text.
+
+       Fixes a post-groff-1.23.0 regression (meaning the bug has only
+       been observable in Git, not a groff release).
+
 2025-10-03  G. Branden Robinson <[email protected]>
 
        [man]: Regression-test non-hyphenation of lengthy URIs that
diff --git a/tmac/an.tmac b/tmac/an.tmac
index bb9f08bd2..60585c8ea 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1242,13 +1242,13 @@ contains unsupported escape sequence
 .    \" uses some means of indicating the hyperlinked text.
 .    el \{\
 .      if '\*[.T]'html' \
-.        nop \X'html:<a href="\\*[an*hyperlink]">\
+.        nop \%\X'html:<a href="\\*[an*hyperlink]">\
 \\*[an*visible-hyperlink]</a>'\c
 .      if '\*[.T]'pdf' \
 .        pdfhref W -D \\*[an*hyperlink] -A "\\*[an*trailing-text]" \
 -- \\*[an*visible-hyperlink]\c
 .      if \\n[an*is-output-terminal] \
-.        nop \X'tty: link \\*[an*hyperlink]'\
+.        nop \%\X'tty: link \\*[an*hyperlink]'\
 \\*[an*visible-hyperlink]\X'tty: link'\c
 .      if !'\*[.T]'pdf' \
 .        nop \&\\*[an*trailing-text]\"

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to