Enable OSC 8 hyperlinks for man pages
Colin Watson
9 months ago
0 | 0 | # see git-dpm(1) from git-dpm package |
1 | 9bd0e1f19bb2591b30d628710ab805ca265789bc | |
2 | 9bd0e1f19bb2591b30d628710ab805ca265789bc | |
1 | 43f8bc8009a33929db3f3bafadf17f606c1b850a | |
2 | 43f8bc8009a33929db3f3bafadf17f606c1b850a | |
3 | 3 | 4e2e28947560f0b5e3a7e89d43846b9183fb4c09 |
4 | 4 | 4e2e28947560f0b5e3a7e89d43846b9183fb4c09 |
5 | 5 | groff_1.23.0.orig.tar.gz |
45 | 45 | * Install groff.pdf (the PDF form of groff's Texinfo manual). |
46 | 46 | * Only force time display to UTC when the time came from SOURCE_DATE_EPOCH |
47 | 47 | (LP: #1908333). |
48 | * Enable OSC 8 hyperlinks for man pages. | |
48 | 49 | |
49 | 50 | -- Colin Watson <cjwatson@debian.org> Sat, 08 Jul 2023 22:13:31 +0100 |
50 | 51 |
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 |
7 | 7 | mmse-note.patch |
8 | 8 | source-date-epoch-utc.patch |
9 | 9 | doc-default-os-debian.patch |
10 | man-hyperlinks.patch |
5 | 5 | .\" output devices. |
6 | 6 | .if !'\*[.T]'html' \ |
7 | 7 | . if !r U \ |
8 | . nr U 0 | |
8 | . nr U 1 | |
9 | 9 | .\" |
10 | 10 | .\" "CW" is not a portable font name, but some man pages use it anyway. |
11 | 11 | .\" Uncomment this to suppress warnings produced by such pages. This |
47 | 47 | fail=yes |
48 | 48 | } |
49 | 49 | |
50 | output=$(printf "%s" "$input" | "$groff" -Tascii -P-cbou -man) | |
50 | output=$(printf "%s" "$input" | "$groff" -Tascii -P-cbou -rU0 -man) | |
51 | 51 | echo "$output" |
52 | 52 | 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) | |
54 | 54 | |
55 | 55 | echo "testing that no diagnostic messages are produced" >&2 |
56 | 56 | test -z "$error" || wail |