From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: olddoc-public@80x24.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6CE4720442 for ; Sat, 28 Nov 2015 01:47:08 +0000 (UTC) From: Eric Wong To: olddoc-public@80x24.org Subject: [PATCH] news_atom: add missing
for XHTML Date: Sat, 28 Nov 2015 01:47:08 +0000 Message-Id: <20151128014708.9088-1-e@80x24.org> List-Id: 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 -- EW