Package: man2html
Version: 1.6c-2
Severity: wishlist
Tags: patch

Hello,

The attached patch adds support for Perl modules.

It allows colon for manpages references and recognizes the 3pm section.

Kind regards,
-- 
Nekral
--- man-1.6c-old/man2html/man2html.c    2006-04-18 19:58:13.000000000 +0200
+++ man-1.6c/man2html/man2html.c        2006-04-18 20:38:15.000000000 +0200
@@ -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;
@@ -186,7 +187,7 @@
                    char t,te,tg,*e;
                    e=h+1;
                    while (h>c && (isalnum(h[-1]) || h[-1]=='_' ||
-                                   h[-1]=='-' || h[-1]=='.'))
+                                   h[-1]=='-' || h[-1]=='.' || h[-1]==':'))
                        h--;
                    t=*h; *h=0;
                    printf("%s", c);

Reply via email to