From 5e0b02d248653b1434c3317f1654cb5c6f011320 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 10 Apr 2023 12:33:35 +0200 Subject: in Atom (RFC4287) an atomTextConstruct specifies the type text as the default This saves a few bytes. --- stagit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stagit.c b/stagit.c index 61c9a53..03f0c09 100644 --- a/stagit.c +++ b/stagit.c @@ -860,7 +860,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag) 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 char *tag) 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); -- cgit v1.2.3-54-g00ecf