File: 021-man2html-perl_modules.patch

package info (click to toggle)
man2html 1.6f%2Brepack-1%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,416 kB
  • ctags: 2,894
  • sloc: ansic: 9,558; sh: 2,301; makefile: 343; perl: 335; awk: 305; lisp: 171; cs: 170
file content (16 lines) | stat: -rw-r--r-- 735 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Add support for Perl modules (closes: #363384).
Patch by Nicolas François.

diff -ruN -x config.guess -x config.sub man-1.6e-old/man2html/man2html.c man-1.6e/man2html/man2html.c
--- man-1.6e-old/man2html/man2html.c	2007-01-31 01:21:06.000000000 +0100
+++ man-1.6e/man2html/man2html.c	2007-01-31 01:21:07.000000000 +0100
@@ -173,7 +173,8 @@
                                 /* section is n or l or starts with a digit */
 		  && strchr("123456789nl", f[1])
 		  && (g-f == 2 || (g-f == 3 && isdigit(f[1]) && isalpha(f[2]))
-		               || (f[2] == 'X' && isdigit(f[1])))
+		               || (f[2] == 'X' && isdigit(f[1]))
+		               || (strncmp(f+1,"3pm",g-f-1) == 0))
 	       ) {
 		/* this might be a link */
 		h=f-1;