improve header and footer
1 files changed, 15 insertions(+), 15 deletions(-) | |||
---|---|---|---|
M | urmoms.c | +15 | -15 |
1@@ -23,25 +23,25 @@ int
2 writeheader(FILE *fp)
3 {
4 fputs("<!DOCTYPE HTML>"
5- "<html dir=\"ltr\" lang=\"en\"><head>"
6- "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"
7- "<meta http-equiv=\"Content-Language\" content=\"en\" />", fp);
8- fprintf(fp, "<title>%s%s%s</title>", name, description[0] ? " - " : "", description);
9- fprintf(fp, "<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />", relpath);
10- fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed\" href=\"%satom.xml\" />",
11+ "<html dir=\"ltr\" lang=\"en\">\n<head>\n"
12+ "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"
13+ "<meta http-equiv=\"Content-Language\" content=\"en\" />\n", fp);
14+ fprintf(fp, "<title>%s%s%s</title>\n", name, description[0] ? " - " : "", description);
15+ fprintf(fp, "<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath);
16+ fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed\" href=\"%satom.xml\" />\n",
17 name, relpath);
18- fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" />"
19- "</head><body><center>");
20- fprintf(fp, "<h1><img src=\"%slogo.png\" alt=\"\" /> %s</h1>", relpath, name);
21- fprintf(fp, "<span class=\"desc\">%s</span><br/>", description);
22- fprintf(fp, "<a href=\"%slog.html\">Log</a> |", relpath);
23- fprintf(fp, "<a href=\"%sfiles.html\">Files</a> | ", relpath);
24- fprintf(fp, "<a href=\"%sstats.html\">Stats</a>", relpath);
25+ fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
26+ fputs("</head>\n<body>\n", fp);
27+ fprintf(fp, "<h1><img src=\"%slogo.png\" alt=\"\" /> %s <span class=\"desc\">%s</span></h1>\n",
28+ relpath, name, description);
29+ fprintf(fp, "<a href=\"%slog.html\">Log</a> | ", relpath);
30+ fprintf(fp, "<a href=\"%sfiles.html\">Files</a>", relpath);
31+ /*fprintf(fp, "| <a href=\"%sstats.html\">Stats</a>", relpath);*/
32 if (hasreadme)
33 fprintf(fp, " | <a href=\"%sreadme.html\">README</a>", relpath);
34 if (haslicense)
35 fprintf(fp, " | <a href=\"%slicense.html\">LICENSE</a>", relpath);
36- fputs("</center><hr/><pre>", fp);
37+ fputs("\n<hr/>\n<pre>", fp);
38
39 return 0;
40 }
41@@ -49,7 +49,7 @@ writeheader(FILE *fp)
42 int
43 writefooter(FILE *fp)
44 {
45- return !fputs("</pre></body></html>", fp);
46+ return !fputs("</pre>\n</body>\n</html>", fp);
47 }
48
49 FILE *