stagit

Personal fork of stagit

git clone git://mccd.space/stagit
commit a44d95bcd6e28473efd8a7c1ed05850b01c9f756
parent 045bb7e6a9ca2c33c5cc89043c99d5a8512d4511
Author: Marc <marc@coquand.email>
Date:   Sun, 19 Jul 2026 17:26:19 +0200

Change so contribute is a "mail" in the table

Diffstat:
Mstagit.c | 21++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/stagit.c b/stagit.c
@@ -528,17 +528,6 @@ writeheader(FILE *fp, const char *title)
 	fputs("</h1><p class=\"desc\">", fp);
 	xmlencode(fp, description, strlen(description));
 	fputs("</p>", fp);
-	if (contrib[0]) {
-	  fputs("<p class=\"contribute\">Contribute: <a aria-label=\"Contribute\" href=\"mailto:", fp);
-	  { size_t ci;
-	    for (ci = 0; contrib[ci]; ci++)
-		    if (contrib[ci] == '@') fputs("%40", fp);
-		    else xmlencode(fp, &contrib[ci], 1);
-	  }
-	  fputs("\">", fp);
-	  xmlencode(fp, contrib, strlen(contrib));
-	  fputs("</a></p>", fp);
-	}		
 	if (cloneurl[0]) {
 	  fputs("<p class=\"url\">git clone <a href=\"", fp);
 	  xmlencode(fp, cloneurl, strlen(cloneurl)); /* not percent-encoded */
@@ -560,6 +549,16 @@ writeheader(FILE *fp, const char *title)
 	if (license)
 	  fprintf(fp, " | <a href=\"%sfile/%s.html\">LICENSE</a>",
 		  relpath, license);
+	if (contrib[0]) {
+	  fputs(" | <a aria-label=\"Contribute\" href=\"mailto:", fp);
+	  { size_t ci;
+	    for (ci = 0; contrib[ci]; ci++)
+		    if (contrib[ci] == '@') fputs("%40", fp);
+		    else xmlencode(fp, &contrib[ci], 1);
+	  }
+	  fputs("\">Mail</a>", fp);
+	}		
+	
 	fputs("</td></tr></tbody></table>", fp);
 
 }