summaryrefslogtreecommitdiff
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-01-07 17:37:25 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-01-07 17:37:25 +0100
commit3cc1509656a45bd13151ff171544e7a500073d67 (patch)
tree6f78679754e871ff1a84274949b8342ea3184d63 /stagit.c
parent12a96d466da342af96777fd94f0b12dd4b6484c0 (diff)
atom: add newline after date and before message
Diffstat (limited to 'stagit.c')
-rw-r--r--stagit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/stagit.c b/stagit.c
index f20f227..ab62c8f 100644
--- a/stagit.c
+++ b/stagit.c
@@ -528,11 +528,12 @@ printcommitatom(FILE *fp, struct commitinfo *ci)
xmlencode(fp, ci->author->email, strlen(ci->author->email));
fputs("&gt;\nDate: ", fp);
printtime(fp, &(ci->author->when));
+ fputc('\n', fp);
}
- fputc('\n', fp);
-
- if (ci->msg)
+ if (ci->msg) {
+ fputc('\n', fp);
xmlencode(fp, ci->msg, strlen(ci->msg));
+ }
fputs("\n</content>\n", fp);
if (ci->author) {
fputs("<author><name>", fp);