stagit

Fork of stagit - for personal repository
git clone git://git.dimitrijedobrota.com/stagit.git
Log | Files | Refs | README | LICENSE

commit e6c9bee2a8c8b79e1922975f6cb2451d692aae67
parent edf839d48e7db9693e8226b060f82330a0aa83d9
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date:   Sun,  8 Aug 2021 15:56:12 +0200

Fix broken closing tags

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

diff --git a/stagit-index.c b/stagit-index.c @@ -72,7 +72,6 @@ writeheader(FILE *fp) fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%scolors.css\" />\n", relpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); - fputs("</head>\n<body>\n", fp); fputs("</head>\n<body>\n<input type=\"checkbox\" id=\"theme-switch\" class=\"theme-switch\">\n<div id=\"page\">\n<label for=\"theme-switch\" class=\"switch-label\"></label>\n", fp); fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n" "<td><span class=\"desc\">", relpath); @@ -88,7 +87,7 @@ writeheader(FILE *fp) void writefooter(FILE *fp) { - fputs("</tbody>\n</table>\n</div>\n</body>\n</html>\n", fp); + fputs("</tbody>\n</table>\n</div>\n</div>\n</body>\n</html>\n", fp); } int diff --git a/stagit.c b/stagit.c @@ -520,7 +520,7 @@ writeheader(FILE *fp, const char *title) void writefooter(FILE *fp) { - fputs("</div>\n</body>\n</html>\n", fp); + fputs("</div>\n</div>\n</body>\n</html>\n", fp); } size_t