Codebase list groff / 6a4b451
Enable OSC 8 hyperlinks for man pages Colin Watson 9 months ago
6 changed file(s) with 54 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
00 # see git-dpm(1) from git-dpm package
1 9bd0e1f19bb2591b30d628710ab805ca265789bc
2 9bd0e1f19bb2591b30d628710ab805ca265789bc
1 43f8bc8009a33929db3f3bafadf17f606c1b850a
2 43f8bc8009a33929db3f3bafadf17f606c1b850a
33 4e2e28947560f0b5e3a7e89d43846b9183fb4c09
44 4e2e28947560f0b5e3a7e89d43846b9183fb4c09
55 groff_1.23.0.orig.tar.gz
4545 * Install groff.pdf (the PDF form of groff's Texinfo manual).
4646 * Only force time display to UTC when the time came from SOURCE_DATE_EPOCH
4747 (LP: #1908333).
48 * Enable OSC 8 hyperlinks for man pages.
4849
4950 -- Colin Watson <cjwatson@debian.org> Sat, 08 Jul 2023 22:13:31 +0100
5051
0 From 43f8bc8009a33929db3f3bafadf17f606c1b850a Mon Sep 17 00:00:00 2001
1 From: Colin Watson <cjwatson@debian.org>
2 Date: Tue, 11 Jul 2023 17:33:14 +0100
3 Subject: Enable OSC 8 hyperlinks for man pages
4
5 The version of `less` in Debian stable supports these, provided that
6 you're also using a suitable terminal emulator.
7
8 Forwarded: no
9 Last-Update: 2023-07-11
10
11 Patch-Name: man-hyperlinks.patch
12 ---
13 tmac/man.local | 2 +-
14 tmac/tests/an_UE-breaks-before-long-URIs.sh | 4 ++--
15 2 files changed, 3 insertions(+), 3 deletions(-)
16
17 diff --git a/tmac/man.local b/tmac/man.local
18 index 5daa507b8..0bb667bd4 100644
19 --- a/tmac/man.local
20 +++ b/tmac/man.local
21 @@ -6,7 +6,7 @@
22 .\" output devices.
23 .if !'\*[.T]'html' \
24 . if !r U \
25 -. nr U 0
26 +. nr U 1
27 .\"
28 .\" "CW" is not a portable font name, but some man pages use it anyway.
29 .\" Uncomment this to suppress warnings produced by such pages. This
30 diff --git a/tmac/tests/an_UE-breaks-before-long-URIs.sh b/tmac/tests/an_UE-breaks-before-long-URIs.sh
31 index 0b151fd8d..f39ceaea1 100755
32 --- a/tmac/tests/an_UE-breaks-before-long-URIs.sh
33 +++ b/tmac/tests/an_UE-breaks-before-long-URIs.sh
34 @@ -48,10 +48,10 @@ wail () {
35 fail=yes
36 }
37
38 -output=$(printf "%s" "$input" | "$groff" -Tascii -P-cbou -man)
39 +output=$(printf "%s" "$input" | "$groff" -Tascii -P-cbou -rU0 -man)
40 echo "$output"
41 error=$(printf "%s" "$input" \
42 - | "$groff" -Tascii -P-cbou -man -ww -z 2>&1)
43 + | "$groff" -Tascii -P-cbou -rU0 -man -ww -z 2>&1)
44
45 echo "testing that no diagnostic messages are produced" >&2
46 test -z "$error" || wail
77 mmse-note.patch
88 source-date-epoch-utc.patch
99 doc-default-os-debian.patch
10 man-hyperlinks.patch
55 .\" output devices.
66 .if !'\*[.T]'html' \
77 . if !r U \
8 . nr U 0
8 . nr U 1
99 .\"
1010 .\" "CW" is not a portable font name, but some man pages use it anyway.
1111 .\" Uncomment this to suppress warnings produced by such pages. This
4747 fail=yes
4848 }
4949
50 output=$(printf "%s" "$input" | "$groff" -Tascii -P-cbou -man)
50 output=$(printf "%s" "$input" | "$groff" -Tascii -P-cbou -rU0 -man)
5151 echo "$output"
5252 error=$(printf "%s" "$input" \
53 | "$groff" -Tascii -P-cbou -man -ww -z 2>&1)
53 | "$groff" -Tascii -P-cbou -rU0 -man -ww -z 2>&1)
5454
5555 echo "testing that no diagnostic messages are produced" >&2
5656 test -z "$error" || wail