From: Eric Wong <e@80x24.org>
To: olddoc-public@80x24.org
Subject: [PATCH] news_atom: add missing <div> for XHTML
Date: Sat, 28 Nov 2015 01:47:08 +0000 [thread overview]
Message-ID: <20151128014708.9088-1-e@80x24.org> (raw)
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
reply other threads:[~2015-11-28 1:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://80x24.org/olddoc/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151128014708.9088-1-e@80x24.org \
--to=e@80x24.org \
--cc=olddoc-public@80x24.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/olddoc.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).