From: Hiltjo Posthuma Date: Thu, 7 Jan 2016 16:37:25 +0000 (+0100) Subject: atom: add newline after date and before message X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=3cc1509656a45bd13151ff171544e7a500073d67;p=forks%2Fstagit.git atom: add newline after date and before message --- 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(">\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\n", fp); if (ci->author) { fputs("", fp);