parent
777f615459
commit
31278a57fb
@ -1,16 +0,0 @@
|
|||||||
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;
|
|
@ -0,0 +1,17 @@
|
|||||||
|
diff -up man-1.6f/man2html/man2html.c.pom man-1.6f/man2html/man2html.c
|
||||||
|
--- man-1.6f/man2html/man2html.c.pom 2009-10-12 09:56:00.000000000 +0200
|
||||||
|
+++ man-1.6f/man2html/man2html.c 2009-10-12 09:59:35.000000000 +0200
|
||||||
|
@@ -171,7 +171,12 @@ add_links(char *c)
|
||||||
|
/* 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])))
|
||||||
|
+ || (g-f == 4 && isdigit(f[1]) && isalpha(f[2]) &&
|
||||||
|
+ isalpha(f[3]))
|
||||||
|
+ || (g-f == 5 && isdigit(f[1]) && isalpha(f[2]) &&
|
||||||
|
+ isalpha(f[3]) && isalpha(f[4]))
|
||||||
|
+ || (g-f == 6 && isdigit(f[1]) && isalpha(f[2]) &&
|
||||||
|
+ isalpha(f[3]) && isalpha(f[4]) && isalpha(f[5])))
|
||||||
|
) {
|
||||||
|
/* this might be a link */
|
||||||
|
h=f-1;
|
Loading…
Reference in new issue