You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
man2html/man2html-perl.patch

17 lines
735 B

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;