stagit
static git repository generator
git clone https://9o.is/git/stagit.git
commit c5836f9852e12f6c6b827662f5e273d1c65aea57 parent fd1280c345f7c664ea049de373b1108422642a8b Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 7 Jan 2016 17:37:25 +0100 atom: add newline after date and before message Diffstat:
| M | stagit.c | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git 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</content>\n", fp); if (ci->author) { fputs("<author><name>", fp);