From 14cce37fa54608362dc2d19ff66d10b64e5777b1 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 10 Apr 2023 16:40:56 +0200 Subject: sfeed_atom: in Atom the default for a type is text Save a few bytes in the output by removing it. https://www.rfc-editor.org/rfc/rfc4287 3.1.1. The "type" Attribute The title is an atomTextConstruct. --- sfeed_atom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfeed_atom.c b/sfeed_atom.c index 3ce5cf0..cfaeb5b 100644 --- a/sfeed_atom.c +++ b/sfeed_atom.c @@ -95,7 +95,7 @@ printfeed(FILE *fp, const char *feedname) /* NOTE: an RSS/Atom viewer may or may not format whitespace such as newlines. Workaround: type="html" and ]]> */ - fputs("\t", stdout); + fputs("\t", stdout); } printcontent(fields[FieldContent]); fputs("\n", stdout); @@ -132,7 +132,7 @@ main(int argc, char *argv[]) fputs("\n" "\n" - "\tNewsfeed\n" + "\tNewsfeed\n" "\tsfeed\n", stdout); printf("\turn:newsfeed:%lld\n" "\t%04d-%02d-%02dT%02d:%02d:%02dZ\n", -- cgit v1.2.3