summaryrefslogtreecommitdiff
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-02-21 13:46:23 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-02-21 13:46:23 +0100
commitbbeffc281df6838182ea17be4b915a6f0eb97570 (patch)
treec6420ac0a55cded9f0835203336d6475b084b75a /stagit.c
parent2f7e7f2503014f66607b588f32de0b1be69c28a1 (diff)
atom.xml: improve output format a bit
Diffstat (limited to 'stagit.c')
-rw-r--r--stagit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stagit.c b/stagit.c
index affa318..7ff036f 100644
--- a/stagit.c
+++ b/stagit.c
@@ -694,11 +694,11 @@ printcommitatom(FILE *fp, struct commitinfo *ci)
xmlencode(fp, ci->summary, strlen(ci->summary));
fputs("</title>\n", fp);
}
- fprintf(fp, "<link rel=\"alternate\" type=\"text/html\" href=\"commit/%s.html\" />",
+ fprintf(fp, "<link rel=\"alternate\" type=\"text/html\" href=\"commit/%s.html\" />\n",
ci->oid);
if (ci->author) {
- fputs("<author><name>", fp);
+ fputs("<author>\n<name>", fp);
xmlencode(fp, ci->author->name, strlen(ci->author->name));
fputs("</name>\n<email>", fp);
xmlencode(fp, ci->author->email, strlen(ci->author->email));