about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-11-28 01:39:08 +0000
committerEric Wong <e@80x24.org>2015-11-28 01:39:08 +0000
commit49bd505dd305b381e4fff7f6d2e18d649a446e03 (patch)
tree0b8f25480f0cfdae1ccbbfd33e47b68668218029
parent907c073738636b44919dc8d3c79a6cbf38114e64 (diff)
downloadcmogstored-49bd505dd305b381e4fff7f6d2e18d649a446e03.tar.gz
Rakefile: add missing <div> for Atom feed
Apparently this is needed for proper XHTML rendering in iceweasel?
-rw-r--r--Rakefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index b214af3..0af6360 100644
--- a/Rakefile
+++ b/Rakefile
@@ -51,9 +51,13 @@ task :news_atom do
           x.email tag[:tagger_email]
         }
         url = "#{cgit_url}/tag/?id=#{tag[:tag]}"
-        x.link :rel => "alternate", :type => "text/html", :href =>url
+        x.link :rel => "alternate", :type => "text/html", :href => url
         x.id url
-        x.content(:type =>:xhtml) { x.pre tag[:body] }
+        x.content(:type =>:xhtml) do
+          x.div(:xmlns => 'http://www.w3.org/1999/xhtml') do
+            x.pre tag[:body]
+          end
+        end
       end
     end
   end