commit 5e0b02d248653b1434c3317f1654cb5c6f011320 from: Hiltjo Posthuma date: Mon Apr 10 10:33:35 2023 UTC in Atom (RFC4287) an atomTextConstruct specifies the type text as the default This saves a few bytes. commit - 37f2b1165a709e27d810624359b14acb487028fe commit + 5e0b02d248653b1434c3317f1654cb5c6f011320 blob - 61c9a53b1c5a8e30024c45b7efabb36db6ae24ec blob + 03f0c097b432c9d301fc24310e55b70dc3f6d4bb --- stagit.c +++ stagit.c @@ -860,7 +860,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const fputs("\n", fp); } if (ci->summary) { - fputs("", fp); + fputs("<title>", fp); if (tag && tag[0]) { fputs("[", fp); xmlencode(fp, tag, strlen(tag)); @@ -880,7 +880,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const fputs("</email>\n</author>\n", fp); } - fputs("<content type=\"text\">", fp); + fputs("<content>", fp); fprintf(fp, "commit %s\n", ci->oid); if (ci->parentoid[0]) fprintf(fp, "parent %s\n", ci->parentoid);