From 09b4cd864544a5ddb3a26eb758cf1a318dfd484c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 6 Dec 2009 21:35:49 -0800 Subject: doc/NEWS.atom: add xhtml, remove shortlog from text preformatted text from shortlog doesn't map well to most feed readers, it seems. --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 79d95e9..dade3a5 100644 --- a/Rakefile +++ b/Rakefile @@ -59,7 +59,9 @@ task :news_atom do url = "#{cgit_url}/tag/?id=#{tag[:tag]}" link! :rel => "alternate", :type => "text/html", :href =>url id! url - content({:type => 'text'}, tag[:body]) + message_only = tag[:body].split(/\n.+\(\d+\):\n {6}/s).first.strip + content({:type =>:text}, message_only) + content(:type =>:xhtml) { pre tag[:body] } end end end -- cgit v1.2.3-24-ge0c7