summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhlabs <rhlabs>1998-03-11 03:17:51 +0000
committerrhlabs <rhlabs>1998-03-11 03:17:51 +0000
commitbcdd3abc9146f07fc28d7b72157b83a3d5961570 (patch)
treeb6bceb06cb80b99911304e0b74adcc92ba720fd2 /src
parentb3a97c2a19fe46c6032eccb372c6de814418aee7 (diff)
downloadyelp-bcdd3abc9146f07fc28d7b72157b83a3d5961570.tar.gz
Use magic URLs for section links.
-Marc
Diffstat (limited to 'src')
-rw-r--r--src/man2html/yelp-man2html.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/man2html/yelp-man2html.c b/src/man2html/yelp-man2html.c
index 93906a1a..3a116f41 100644
--- a/src/man2html/yelp-man2html.c
+++ b/src/man2html/yelp-man2html.c
@@ -2550,8 +2550,16 @@ static char
scan_troff(wordlist[2],
1, NULL);
} else out_html(")");
- out_html("<BR><A HREF=\"#index\">"
- "Index</A>\n");
+
+ out_html("\n");
+ printf("<BR><A HREF=\"");
+ if (URLbasename)
+ printf(URLbasename);
+ printf("#index\">Index</A>\n");
+#if 0
+ out_html("<BR><A HREF=\"");
+ out_html("#index\">Index</A>\n");
+#endif
*sl='\n';
#if 0
fputs("<BR><A HREF=\""