X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=stagit.c;h=bb8b404f49b7f70be9aa27284183a904f396a383;hb=dee83b1f1087f9f56114741c6dff52a01ed0d7cb;hp=affa318448413fbe68c8c743be7c6fd569f0aefa;hpb=2f7e7f2503014f66607b588f32de0b1be69c28a1;p=stagit.git
diff --git a/stagit.c b/stagit.c
index affa318..bb8b404 100644
--- a/stagit.c
+++ b/stagit.c
@@ -365,11 +365,11 @@ writeheader(FILE *fp, const char *title)
xmlencode(fp, description, strlen(description));
fputs("", fp);
if (cloneurl[0]) {
- fputs("
| \n", fp);
fprintf(fp, "Log | ", relpath);
@@ -397,7 +397,7 @@ int
writeblobhtml(FILE *fp, const git_blob *blob)
{
size_t n = 0, i, prev;
- const char *nfmt = "%7d ";
+ const char *nfmt = "%7d";
const char *s = git_blob_rawcontent(blob);
git_off_t len = git_blob_rawsize(blob);
@@ -410,6 +410,7 @@ writeblobhtml(FILE *fp, const git_blob *blob)
n++;
fprintf(fp, nfmt, n, n, n);
xmlencode(fp, &s[prev], i - prev + 1);
+ fprintf(fp, "");
prev = i + 1;
}
/* trailing data */
@@ -417,6 +418,7 @@ writeblobhtml(FILE *fp, const git_blob *blob)
n++;
fprintf(fp, nfmt, n, n, n);
xmlencode(fp, &s[prev], len - prev);
+ fprintf(fp, "");
}
}
@@ -694,11 +696,11 @@ printcommitatom(FILE *fp, struct commitinfo *ci)
xmlencode(fp, ci->summary, strlen(ci->summary));
fputs("\n", fp);
}
- fprintf(fp, "",
+ fprintf(fp, "\n",
ci->oid);
if (ci->author) {
- fputs("", fp);
+ fputs("\n", fp);
xmlencode(fp, ci->author->name, strlen(ci->author->name));
fputs("\n", fp);
xmlencode(fp, ci->author->email, strlen(ci->author->email));
|