stagit

static git page generator
git clone git://git.sgregoratto.me/stagit
Log | Files | Refs | README | LICENSE

commit 8c39d88324a4fd3c2f60af3ae2adf232122e697d
parent c0bfc12bae426e6ebda2b4c65a744e34aa15731e
Author: Stephen Gregoratto <dev@sgregoratto.me>
Date:   Wed, 24 Jul 2019 03:10:38 +1000

remove additional tables

Diffstat:
Mstagit-index.c | 3+--
Mstagit.c | 6+++---
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -78,8 +78,7 @@ writeheader(FILE *fp) fputs("</title>", fp); fputs("<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\" />\n", fp); fputs("</head>\n<body>\n", fp); - fprintf(fp, "<table>\n<tr><td></td>\n" - "<td><span class=\"desc\">", relpath); + fputs("<table>\n<tr>\n<td><span class=\"desc\">", fp); xmlencode(fp, description, strlen(description)); fputs("</span></td></tr><tr><td></td><td>\n" "</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n" diff --git a/stagit.c b/stagit.c @@ -358,19 +358,19 @@ writeheader(FILE *fp, const char *title) "title=\"%s Atom Feed\" href=\"%satom.xml\" />\n", name, relpath); fputs("<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\" />\n", fp); - fputs("</head>\n<body>\n<table><tr><td></td><td><h1>", fp); + fputs("</head>\n<body>\n<table><tr><td><h1>", fp); xmlencode(fp, strippedname, strlen(strippedname)); fputs("</h1><span class=\"desc\">", fp); xmlencode(fp, description, strlen(description)); fputs("</span></td></tr>", fp); if (cloneurl[0]) { - fputs("<tr class=\"url\"><td></td><td>git clone <a href=\"", fp); + fputs("<tr class=\"url\"><td>git clone <a href=\"", fp); xmlencode(fp, cloneurl, strlen(cloneurl)); fputs("\">", fp); xmlencode(fp, cloneurl, strlen(cloneurl)); fputs("</a></td></tr>", fp); } - fputs("<tr><td></td><td>\n", fp); + fputs("<tr><td>\n", fp); fprintf(fp, "<a href=\"%slog.html\">Log</a> | ", relpath); fprintf(fp, "<a href=\"%sfiles.html\">Files</a> | ", relpath); fprintf(fp, "<a href=\"%srefs.html\">Refs</a>", relpath);