atom.xml: improve output format a bit

This commit is contained in:
Hiltjo Posthuma 2020-02-21 13:46:23 +01:00
parent 2f7e7f2503
commit bbeffc281d

View file

@ -694,11 +694,11 @@ printcommitatom(FILE *fp, struct commitinfo *ci)
xmlencode(fp, ci->summary, strlen(ci->summary)); xmlencode(fp, ci->summary, strlen(ci->summary));
fputs("</title>\n", fp); 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); ci->oid);
if (ci->author) { if (ci->author) {
fputs("<author><name>", fp); fputs("<author>\n<name>", fp);
xmlencode(fp, ci->author->name, strlen(ci->author->name)); xmlencode(fp, ci->author->name, strlen(ci->author->name));
fputs("</name>\n<email>", fp); fputs("</name>\n<email>", fp);
xmlencode(fp, ci->author->email, strlen(ci->author->email)); xmlencode(fp, ci->author->email, strlen(ci->author->email));