From: Hiltjo Posthuma Date: Sat, 5 Dec 2015 20:11:26 +0000 (+0100) Subject: fix menu separator if one or both of license or readme is missing X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=59912de009c27abec4f2be28d95a157bfedbb0d1;p=forks%2Fstagit.git fix menu separator if one or both of license or readme is missing --- diff --git a/urmoms.c b/urmoms.c index cebe1b6..1fa4d6e 100644 --- a/urmoms.c +++ b/urmoms.c @@ -140,11 +140,11 @@ writeheader(FILE *fp) fprintf(fp, "%s
", description); fprintf(fp, "Log |", relpath); fprintf(fp, "Files| ", relpath); - fprintf(fp, "Stats | ", relpath); + fprintf(fp, "Stats", relpath); if (hasreadme) - fprintf(fp, "README | ", relpath); + fprintf(fp, " | README", relpath); if (haslicense) - fprintf(fp, "LICENSE", relpath); + fprintf(fp, " | LICENSE", relpath); fprintf(fp, "
");
 
 	return 0;