|
|
in Atom (RFC4287) an atomTextConstruct specifies the type text as the default - stagit-gopher - static git page generator for gopher |
|
|
 |
git clone git://git.codemadness.org/stagit-gopher (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit 61c4fd365ea5a5c70943b4ba9c98250b56b34924 |
|
|
 |
parent d8c4c2c3aa23b1237f15fc3ab539419c2368989e |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
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 *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); |
|