fix menu separator if one or both of license or readme is missing

This commit is contained in:
Hiltjo Posthuma 2015-12-05 21:11:26 +01:00
parent b069cb6fd5
commit 59912de009

View file

@ -140,11 +140,11 @@ writeheader(FILE *fp)
fprintf(fp, "<span class=\"desc\">%s</span><br/>", description);
fprintf(fp, "<a href=\"%slog.html\">Log</a> |", relpath);
fprintf(fp, "<a href=\"%sfiles.html\">Files</a>| ", relpath);
fprintf(fp, "<a href=\"%sstats.html\">Stats</a> | ", relpath);
fprintf(fp, "<a href=\"%sstats.html\">Stats</a>", relpath);
if (hasreadme)
fprintf(fp, "<a href=\"%sreadme.html\">README</a> | ", relpath);
fprintf(fp, " | <a href=\"%sreadme.html\">README</a>", relpath);
if (haslicense)
fprintf(fp, "<a href=\"%slicense.html\">LICENSE</a>", relpath);
fprintf(fp, " | <a href=\"%slicense.html\">LICENSE</a>", relpath);
fprintf(fp, "</center><hr/><pre>");
return 0;