in Atom (RFC4287) an atomTextConstruct specifies the type text as the default - stagit-gopher - A git gopher frontend. (mirror) HTML git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 61c4fd365ea5a5c70943b4ba9c98250b56b34924 DIR parent d8c4c2c3aa23b1237f15fc3ab539419c2368989e HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 10 Apr 2023 12:34:37 +0200 in Atom (RFC4287) an atomTextConstruct specifies the type text as the default This saves a few bytes. Diffstat: M stagit-gopher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/stagit-gopher.c b/stagit-gopher.c @@ -924,7 +924,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag) fputs("</updated>\n", fp); } if (ci->summary) { - fputs("<title type=\"text\">", fp); + fputs("<title>", fp); if (tag && tag[0]) { fputs("[", fp); xmlencode(fp, tag, strlen(tag)); @@ -944,7 +944,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);