On Sun, Jun 01, 2025 at 01:11:24AM +0100, Colin Watson wrote:
https://savannah.gnu.org/bugs/index.php?67169 reported that the .UR man
macro drops URLs in PDF output; the upstream bug has a reproducer. This
turns out to be because a Debian patch
(https://salsa.debian.org/debian/groff/-/blob/master/debian/patches/man-hyperlinks.patch)
enables the U register, but I hadn't realized that this was broken for
PDF output in groff 1.23.0.
The next upstream release will have proper PDF hyperlinking support, but
until then, we should adjust this patch so that it doesn't default to
attempting to use hyperlinks for PDF output.
In fact, it's not just this patch, because an.tmac defaults to setting
the U register to 1 if it's unset. So I think cherry-picking
https://cgit.git.savannah.gnu.org/cgit/groff.git/commit/?id=d9e90209725a716dff23807ffffda403c58020c9
is simplest, and I've checked that it produces sensible rendering in
both terminal and PDF output.
--
Colin Watson (he/him) [cjwat...@debian.org]