fix menu separator if one or both of license or readme is missing - stagit-gopher - A git gopher frontend. (mirror)
 (HTM) git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 59912de009c27abec4f2be28d95a157bfedbb0d1
 (DIR) parent b069cb6fd50d180cd6afb272c0016a6715f126d9
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat,  5 Dec 2015 21:11:26 +0100
       
       fix menu separator if one or both of license or readme is missing
       
       Diffstat:
         M urmoms.c                            |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git 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;