summaryrefslogtreecommitdiff
path: root/urmoms.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-12-07 18:59:13 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-12-07 18:59:13 +0100
commit17f9f53ea0406e887516fe61795da970c8ccc17e (patch)
tree5f5e150d7aeba1387ca868f95c076efc0bf323fc /urmoms.c
parent51ecd71d5fd10327251c32d8a91e135945eaf20c (diff)
make author e-mail a link
Diffstat (limited to 'urmoms.c')
-rw-r--r--urmoms.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/urmoms.c b/urmoms.c
index db146f4..13c21e2 100644
--- 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);