summaryrefslogtreecommitdiff
path: root/src/man2html/yelp-man2html.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/man2html/yelp-man2html.c')
-rw-r--r--src/man2html/yelp-man2html.c31
1 files changed, 21 insertions, 10 deletions
diff --git a/src/man2html/yelp-man2html.c b/src/man2html/yelp-man2html.c
index f3aa97dc..5fc55ea2 100644
--- a/src/man2html/yelp-man2html.c
+++ b/src/man2html/yelp-man2html.c
@@ -4,8 +4,19 @@
**
** Permission is granted to distribute, modify and use this program as long
** as this comment is not removed or changed.
+* In addition,
+*
+* Copyright (C) 1999 Red Hat Software
+* Changes licensed under the GNU Public License.
*/
+/*
+ * gnome-man2html2
+ * This version modified for GNOME - December 1999
+ * Elliot Lee <sopwith@redhat.com>
+ * May this code live forever :)
+ */
+
/*
* gnome-man2html
* This version modified for GNOME - February 1998
@@ -551,16 +562,16 @@ add_links(char *c)
"file:/usr/man/man%c/%s.%c\">%s</A>",
sec, h, sec, h);
#else
- if (subsec)
- printf("<A HREF=\"man:"
- "%s(%c%c)\">%s</A>",
- h, sec,
- tolower(subsec), h);
- else
- printf("<A HREF=\"man:"
- "%s(%c)\">%s</A>",
- h, sec, h);
-
+ /* The code used to take
+ 'subsec' into account, but
+ (a) 'subsec' can be more than
+ one character (b) We have
+ no use for that information */
+
+ printf("<A HREF=\"man:"
+ "%s.%c\">%s</A>",
+ h, sec,
+ h);
#endif
*e=t;
c=e;