]> git.armaanb.net Git - stagit.git/commitdiff
style: write atom feed end in one write, kills 2 lines
authorHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 2 May 2016 19:23:17 +0000 (21:23 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 2 May 2016 19:25:44 +0000 (21:25 +0200)
stagit.c

index 158447d871c41ae6498a961fdfe39e6765584fa7..1e4d1bbf80c70f9aceaecdfef0b67e60abb6cf9c 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -668,9 +668,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci)
                fputc('\n', fp);
                xmlencode(fp, ci->msg, strlen(ci->msg));
        }
-       fputs("\n</content>\n", fp);
-
-       fputs("</entry>\n", fp);
+       fputs("\n</content>\n</entry>\n", fp);
 }
 
 int