Halibut: Always generate fragment for chapter links in htmlsingle mode
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6194 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
33770dcd4f
commit
8b457d1aa2
1 changed files with 7 additions and 7 deletions
|
@ -1245,18 +1245,18 @@ xhtml_add_contents_entry(FILE * fp, xhtmlsection * section, int limit)
|
||||||
if(chm_toc)fprintf(chm_toc, "<ul>\n");
|
if(chm_toc)fprintf(chm_toc, "<ul>\n");
|
||||||
}
|
}
|
||||||
filename = conf.leaf_level ? section->file->filename : "";
|
filename = conf.leaf_level ? section->file->filename : "";
|
||||||
fragment = xhtml_get_fragmentname(section, fragmentbuf);
|
fragment = "";
|
||||||
|
if (section->para->type != para_Chapter || !conf.leaf_level)
|
||||||
|
fragment = xhtml_get_fragmentname(section, fragmentbuf);
|
||||||
|
|
||||||
fprintf(fp, "<li>");
|
fprintf(fp, "<li>");
|
||||||
fprintf(fp, "<a %shref=\"%s#%s\">",
|
fprintf(fp, "<a %shref=\"%s#%s\">",
|
||||||
(section->para->type == para_Chapter|| section->para->type == para_Appendix) ? "class=\"btitle\" " : "",
|
(section->para->type == para_Chapter|| section->para->type == para_Appendix) ? "class=\"btitle\" " : "",
|
||||||
filename,
|
filename, fragment);
|
||||||
(section->para->type == para_Chapter) ? "" : fragment);
|
|
||||||
if(chm_toc)fprintf(chm_toc, "<li><OBJECT type=\"text/sitemap\"><param name=\"Local\" value=\"%s#%s\"><param name=\"Name\" value=\"",
|
if(chm_toc)fprintf(chm_toc, "<li><OBJECT type=\"text/sitemap\"><param name=\"Local\" value=\"%s#%s\"><param name=\"Name\" value=\"",
|
||||||
filename,
|
filename, fragment);
|
||||||
(section->para->type == para_Chapter) ? "" : fragment);
|
|
||||||
if(chm_ind)fprintf(chm_ind, "<li><OBJECT type=\"text/sitemap\"><param name=\"Local\" value=\"%s#%s\"><param name=\"Name\" value=\"",
|
if(chm_ind)fprintf(chm_ind, "<li><OBJECT type=\"text/sitemap\"><param name=\"Local\" value=\"%s#%s\"><param name=\"Name\" value=\"",
|
||||||
filename,
|
filename, fragment);
|
||||||
(section->para->type == para_Chapter) ? "" : fragment);
|
|
||||||
//%s
|
//%s
|
||||||
if (section->para->type == para_Chapter
|
if (section->para->type == para_Chapter
|
||||||
|| section->para->type == para_Appendix)
|
|| section->para->type == para_Appendix)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue