git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitweb - Use <description> instead of <content:encoded>.

From
Yasushi SHOJI <yashi@atmark-techno.com>
Date
Aug 18, 2005, 14:30 UTC
Message-ID
<87ll2zwc4u.wl@mail2.atmark-techno.com>
Use <description> instead of <content:encoded>.

RSS 2.0 Specification doesn't have <content:encoded>. see http://blogs.law.harvard.edu/tech/rss

I've tested this with Mozilla Thunderbird version 1.0.6 (20050802), and seems to be working well.

Signed-off-by: Yasushi SHOJI <yashi@atmark-techno.com>
---
 gitweb.cgi |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
8a489f354a5412e44ddaf7443aaecb47a81167f8
diff --git a/gitweb.cgi b/gitweb.cgi
--- a/gitweb.cgi
+++ b/gitweb.cgi
@@ -1426,8 +1426,7 @@ sub git_rss {
 		      "</title>\n" .
 		      "<pubDate>$cd{'rfc2822'}</pubDate>\n" .
 		      "<link>" . escapeHTML("$my_url?p=$project;a=commit;h=$commit") . "</link>\n" .
-		      "<description>" . escapeHTML($co{'title'}) . "</description>\n" .
-		      "<content:encoded>" .
+		      "<description>" .
 		      "<![CDATA[\n";
 		my $comment = $co{'comment'};
 		foreach my $line (@$comment) {
@@ -1442,7 +1441,7 @@ sub git_rss {
 			print "$file<br/>\n";
 		}
 		print "]]>\n" .
-		      "</content:encoded>\n" .
+		      "</description>\n" .
 		      "</item>\n";
 	}
 	print "</channel></rss>";
Next: Sven Verdoolaege
Message 1 of 5 in “gitweb - Use <description> instead of <content:encoded>.”
  1. gitweb - Use <description> instead of <content:encoded>.Yasushi SHOJI, Aug 18, 2005
  2. Sven VerdoolaegeAug 18, 2005
  3. Yasushi SHOJIAug 18, 2005
  4. Kay SieversAug 18, 2005
  5. Yasushi SHOJIAug 18, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.