From e3006c9373d8fff3e2e9d15a8b1990022064d4f6 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 7 Dec 2015 18:57:46 +0100 Subject: [PATCH] improve header and footer --- urmoms.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/urmoms.c b/urmoms.c index d7e7005..f29af97 100644 --- a/urmoms.c +++ b/urmoms.c @@ -23,25 +23,25 @@ int writeheader(FILE *fp) { fputs("" - "" - "" - "", fp); - fprintf(fp, "%s%s%s", name, description[0] ? " - " : "", description); - fprintf(fp, "", relpath); - fprintf(fp, "", + "\n\n" + "\n" + "\n", fp); + fprintf(fp, "%s%s%s\n", name, description[0] ? " - " : "", description); + fprintf(fp, "\n", relpath); + fprintf(fp, "\n", name, relpath); - fprintf(fp, "" - "
"); - fprintf(fp, "

\"\" %s

", relpath, name); - fprintf(fp, "%s
", description); - fprintf(fp, "Log |", relpath); - fprintf(fp, "Files | ", relpath); - fprintf(fp, "Stats", relpath); + fprintf(fp, "\n", relpath); + fputs("\n\n", fp); + fprintf(fp, "

\"\" %s %s

\n", + relpath, name, description); + fprintf(fp, "Log | ", relpath); + fprintf(fp, "Files", relpath); + /*fprintf(fp, "| Stats", relpath);*/ if (hasreadme) fprintf(fp, " | README", relpath); if (haslicense) fprintf(fp, " | LICENSE", relpath); - fputs("

", fp);
+	fputs("\n
\n
", fp);
 
 	return 0;
 }
@@ -49,7 +49,7 @@ writeheader(FILE *fp)
 int
 writefooter(FILE *fp)
 {
-	return !fputs("
", fp); + return !fputs("
\n\n", fp); } FILE * -- libgit2 1.1.1