in Atom (RFC4287) an atomTextConstruct specifies the type text as the default -… | |
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit 61c4fd365ea5a5c70943b4ba9c98250b56b34924 | |
parent d8c4c2c3aa23b1237f15fc3ab539419c2368989e | |
Author: Hiltjo Posthuma <[email protected]> | |
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(-) | |
--- | |
diff --git a/stagit-gopher.c b/stagit-gopher.c | |
@@ -924,7 +924,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char… | |
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… | |
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); |