Different linkage on the index page

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1546 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
rainwater 2002-11-01 22:28:10 +00:00
parent 43b2adb4e4
commit c056fc5d17

View file

@ -800,8 +800,7 @@ static void xhtml_do_index_body(FILE * fp)
for (i = 0; i < xi->nsection; i++) {
xhtmlsection *sect = xi->sections[i];
if (sect) {
fprintf(fp, "<a href='%s#%s'>", sect->file->filename,
sect->fragment);
fprintf(fp, "<a href='%s#%s'>", sect->file->filename,sect->fragment);
if (sect->para->kwtext) {
xhtml_para(fp, sect->para->kwtext);
} else if (sect->para->words) {
@ -1074,16 +1073,19 @@ xhtml_add_contents_entry(FILE * fp, xhtmlsection * section, int limit)
last_level++;
fprintf(fp, "<ul>\n");
}
fprintf(fp, "<li><a href=\"%s#%s\">", section->file->filename,
section->fragment);
if (section->para->kwtext) {
xhtml_para(fp, section->para->kwtext);
if (section->para->words) {
fprintf(fp, ": ");
}
fprintf(fp, "<li>");
if ((section->para->type==para_Heading||section->para->type==para_Chapter)&&section->para->kwtext&&section->para->words) {
xhtml_para(fp, section->para->kwtext);
fprintf(fp,": ");
}
fprintf(fp, "<a href=\"%s#%s\">", section->file->filename,section->fragment);
if ((section->para->type!=para_Heading&&section->para->type!=para_Chapter)||(section->para->kwtext&&!section->para->words)) {
xhtml_para(fp, section->para->kwtext);
if (section->para->words)
fprintf(fp, ": ");
}
if (section->para->words) {
xhtml_para(fp, section->para->words);
xhtml_para(fp, section->para->words);
}
fprintf(fp, "</a></li>\n");
return TRUE;