about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-06 21:35:49 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-06 21:35:49 -0800
commit09b4cd864544a5ddb3a26eb758cf1a318dfd484c (patch)
tree184a684555415942622da143df5a95d4010ead79 /Rakefile
parentfe90382cc2a7512dd9d1e8e6bcd592ab0c4c6866 (diff)
downloadunicorn-09b4cd864544a5ddb3a26eb758cf1a318dfd484c.tar.gz
preformatted text from shortlog doesn't map well to
most feed readers, it seems.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 3 insertions, 1 deletions
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