From 2a44cf2bb91150cbbe8e438a6cae5bf1e5015d61 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 28 Nov 2015 01:44:21 +0000 Subject: news_atom: add missing
for XHTML This should help the XHTML render properly in more feed readers. ref: RFC 4287 Section 4.1.3.4 --- lib/olddoc/news_atom.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/olddoc/news_atom.rb b/lib/olddoc/news_atom.rb index 6a92b3e..7c63db2 100644 --- a/lib/olddoc/news_atom.rb +++ b/lib/olddoc/news_atom.rb @@ -33,7 +33,11 @@ module Olddoc::NewsAtom uri = tag_uri(tag[:tag]).to_s x.link(rel: "alternate", type: 'text/html', href: uri) x.id(uri) - 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 # entry end # new_tags end # feed -- cgit v1.2.3-24-ge0c7