diff options
author | FRIGN <dev@frign.de> | 2015-12-14 12:49:23 +0100 |
---|---|---|
committer | FRIGN <dev@frign.de> | 2015-12-14 12:49:58 +0100 |
commit | c3014aaaba1d98b8e54537cef6246add1ab62094 (patch) | |
tree | af4a0f7ad9fa2f925a6f84c6a117cbd673c62cc6 /urmoms.c | |
parent | f33bca44bdd4f6758b9045c02ddbab9adc7b97c0 (diff) |
Add config.def.h and make summary length configurable
Diffstat (limited to 'urmoms.c')
-rw-r--r-- | urmoms.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -10,6 +10,7 @@ #include <string.h> #include <unistd.h> +#include "config.h" #include "git2.h" struct commitinfo { @@ -428,9 +429,9 @@ writelog(FILE *fp) fputs("</td><td>", fp); if (ci->summary) { fprintf(fp, "<a href=\"%scommit/%s.html\">", relpath, ci->oid); - if ((len = strlen(ci->summary)) > 79) { - xmlencode(fp, ci->summary, 76); - fputs("...", fp); + if ((len = strlen(ci->summary)) > summarylen) { + xmlencode(fp, ci->summary, summarylen - 1); + fputs("…", fp); } else { xmlencode(fp, ci->summary, len); } |