]> git.armaanb.net Git - stagit.git/commitdiff
make author e-mail a link
authorHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 7 Dec 2015 17:59:13 +0000 (18:59 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 7 Dec 2015 17:59:13 +0000 (18:59 +0100)
urmoms.c

index db146f45caa554e69ecd757c7c55be3d95edce66..13c21e232f12cd603a1a6c6ecc01ac87cc2786f8 100644 (file)
--- a/urmoms.c
+++ b/urmoms.c
@@ -184,10 +184,13 @@ printcommit(FILE *fp, git_commit *commit)
        if ((sig = git_commit_author(commit)) != NULL) {
                fprintf(fp, "Author: ");
                xmlencode(fp, sig->name, strlen(sig->name));
-               fprintf(fp, " &lt;");
+               fprintf(fp, " &lt;<a href=\"mailto:");
                xmlencode(fp, sig->email, strlen(sig->email));
-               fprintf(fp, "&gt;\nDate:   ");
+               fputs("\">", fp);
+               xmlencode(fp, sig->email, strlen(sig->email));
+               fputs("</a>&gt;\nDate:   ", fp);
                printtime(fp, &sig->when);
+               fputc('\n', fp);
        }
        fputc('\n', fp);