gbranden pushed a commit to branch master
in repository groff.

commit 7dcc8b53f944178d91b0f25b67ac32d4f98d9049
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jan 18 10:02:41 2026 -0600

    [gropdf]: Regression-test Savannah #67927.
    
    * tmac/tests/pdf_pdfhref-W-without-link-text-works.sh: New file.
    
    * src/devices/gropdf/gropdf.am (gropdf_TESTS): Run test.
    
    Tested by experimentally reverting 5c6e3f5601 in my working copy; it
    then fails.
---
 ChangeLog                                          |  7 +++
 src/devices/gropdf/gropdf.am                       |  1 +
 .../tests/pdf_pdfhref-W-without-link-text-works.sh | 52 ++++++++++++++++++++++
 3 files changed, 60 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index a75cd4f00..7cafee4cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-01-18  G. Branden Robinson <[email protected]>
+
+       [gropdf]: Regression-test Savannah #67927.
+
+       * tmac/tests/pdf_pdfhref-W-without-link-text-works.sh: New file.
+       * src/devices/gropdf/gropdf.am (gropdf_TESTS): Run test.
+
 2026-01-18  G. Branden Robinson <[email protected]>
 
        * src/roff/groff/tests/lj4-device-smoke-test.sh: Pass `-P
diff --git a/src/devices/gropdf/gropdf.am b/src/devices/gropdf/gropdf.am
index 6213da863..807e43665 100644
--- a/src/devices/gropdf/gropdf.am
+++ b/src/devices/gropdf/gropdf.am
@@ -59,6 +59,7 @@ pdfmom: $(gropdf_dir)/pdfmom.pl $(SH_DEPS_SED_SCRIPT)
 
 gropdf_TESTS = \
   tmac/tests/pdf_bookmark-starting-with-control-char-works.sh \
+  tmac/tests/pdf_pdfhref-W-without-link-text-works.sh \
   tmac/tests/pdfpic_does-not-choke-on-bad-pdfinfo-output.sh \
   tmac/tests/pdfpic_falls-back-to-PSPIC.sh
 TESTS += $(gropdf_TESTS)
diff --git a/tmac/tests/pdf_pdfhref-W-without-link-text-works.sh 
b/tmac/tests/pdf_pdfhref-W-without-link-text-works.sh
new file mode 100755
index 000000000..250b5b1e4
--- /dev/null
+++ b/tmac/tests/pdf_pdfhref-W-without-link-text-works.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+#
+# Copyright 2026 G. Branden Robinson
+#
+# This file is part of groff, the GNU roff typesetting system.
+#
+# groff is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# groff is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+groff="${abs_top_builddir:-.}/test-groff"
+
+input='.
+.sp
+This is a
+.pdfhref M -E raw
+.ft I
+groff
+.ft
+document,
+dude.
+.bp
+.sp
+Okay,
+so this is page two,
+and we are going to
+.pdfhref L -D raw -A (tm) roller boogie
+our booties back to the named destination on page one.
+.bp
+.sp
+It is widely believed that the
+.ft I
+groff
+.ft
+home page lives at
+.pdfhref W -D https://www.gnu.org/software/groff/ -A .
+.'
+
+output=$(echo "$input" | "$groff" -a -T pdf)
+echo "$output"
+echo "$output" | grep -Fq "www.gnu.org/software/groff"
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:

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

Reply via email to