diff options
-rw-r--r-- | Rakefile | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -32,7 +32,7 @@ desc 'prints news as an Atom feed' task :news_atom do require 'builder' # gem install builder new_tags = tags[0,10] - x = Builder::XmlMarkup.new(:indent => 2) + x = Builder::XmlMarkup.new x.instruct! :xml, :encoding => 'UTF-8', :version => '1.0' x.feed(:xmlns => "http://www.w3.org/2005/Atom") do x.id "#{url_base}/NEWS.atom.xml" @@ -53,8 +53,6 @@ task :news_atom do url = "#{cgit_url}/tag/?id=#{tag[:tag]}" x.link :rel => "alternate", :type => "text/html", :href =>url x.id url - message_only = tag[:body].split(/\n.+\(\d+\):\n {6}/).first.strip - x.content({:type =>:text}, message_only) x.content(:type =>:xhtml) { x.pre tag[:body] } end end |