]> git.armaanb.net Git - stagit.git/commitdiff
fix menu separator if one or both of license or readme is missing
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 5 Dec 2015 20:11:26 +0000 (21:11 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 5 Dec 2015 20:11:26 +0000 (21:11 +0100)
urmoms.c

index cebe1b68569fae1d62e585608e304175dfd3adcc..1fa4d6e4830d57e924f35b7d02b5c2bd8314f3b6 100644 (file)
--- a/urmoms.c
+++ b/urmoms.c
@@ -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;