stagit

My personal fork of stagit https://codemadness.org/stagit.html
git clone https://git.grace.moe/stagit
Log | Files | Refs | README | LICENSE

commit 96cbcdf6e6f2e5e572c8b01a6990151462cb4b00
parent 24aaa757627f678f20fa1dd6ca676d5598f1d841
Author: gracefu <81774659+gracefuu@users.noreply.github.com>
Date:   Sat, 19 Apr 2025 23:30:58 +0800

Make stagit-index link to ../

Diffstat:
Mstagit-index.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -270,8 +270,8 @@ writeheader(FILE *fp) "}\n" "</style>\n"); fputs("</head>\n<body>\n", fp); - fprintf(fp, "<table>\n<tr><td><svg height=\"32px\" width=\"32px\" xmlns=\"http://www.w3.org/2000/svg\"><circle r=\"16\" cx=\"16\" cy=\"16\" fill=\"lightpink\"></circle></svg></td>\n" - "<td><span class=\"desc\">", relpath); + fprintf(fp, "<table>\n<tr><td><a href=\"../\"><svg height=\"32px\" width=\"32px\" xmlns=\"http://www.w3.org/2000/svg\"><circle r=\"16\" cx=\"16\" cy=\"16\" fill=\"lightpink\"></circle></svg></a></td>\n" + "<td><span class=\"desc\">"); 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"