aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2023-04-10 12:33:35 +0200
committerHiltjo Posthuma <[email protected]>2023-04-10 12:33:35 +0200
commit5e0b02d248653b1434c3317f1654cb5c6f011320 (patch)
tree4748774fdd4293442ef0064c6cc3bb85745dee9a
parent37f2b1165a709e27d810624359b14acb487028fe (diff)
downloadstagit-5e0b02d248653b1434c3317f1654cb5c6f011320.tar.gz
stagit-5e0b02d248653b1434c3317f1654cb5c6f011320.zip
in Atom (RFC4287) an atomTextConstruct specifies the type text as the default
This saves a few bytes.
-rw-r--r--stagit.c4
1 files 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("</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));
@@ -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);