Introduction
Introduction Statistics Contact Development Disclaimer Help
tmake author e-mail a link - stagit - static git page generator
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit 17f9f53ea0406e887516fe61795da970c8ccc17e
parent 51ecd71d5fd10327251c32d8a91e135945eaf20c
Author: Hiltjo Posthuma <[email protected]>
Date: Mon, 7 Dec 2015 18:59:13 +0100
make author e-mail a link
Diffstat:
M urmoms.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/urmoms.c b/urmoms.c
t@@ -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);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.