git » blitiri » commit 275c0cd

Remove unneeded <p>...</p> pair from atom content

author Alberto Bertogli
2008-09-08 02:29:36 UTC
committer Alberto Bertogli
2008-09-08 02:29:36 UTC
parent aa5f9310765606457dbcb847e56f55ec92e72fb1

Remove unneeded <p>...</p> pair from atom content

This patch removes a <p>...</p> pair that surrounded the content in atom
feeds, to prevent <p> nesting which is invalid xhtml.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

blitiri.cgi +2 -2

diff --git a/blitiri.cgi b/blitiri.cgi
index a0334e4..bce7765 100755
--- a/blitiri.cgi
+++ b/blitiri.cgi
@@ -1125,9 +1125,9 @@ def render_atom(articles):
     <published>%(ciso)sZ</published>
     <updated>%(uiso)sZ</updated>
     <content type="xhtml">
-      <div xmlns="http://www.w3.org/1999/xhtml"><p>
+      <div xmlns="http://www.w3.org/1999/xhtml">
 %(contents)s
-      </p></div>
+      </div>
     </content>
   </entry>
 		""" % vars