]> git.llucax.com Git - software/blitiri.git/commitdiff
Remove unneeded <p>...</p> pair from atom content
authorAlberto Bertogli <albertito@blitiri.com.ar>
Mon, 8 Sep 2008 02:29:36 +0000 (23:29 -0300)
committerAlberto Bertogli <albertito@blitiri.com.ar>
Mon, 8 Sep 2008 02:29:36 +0000 (23:29 -0300)
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

index a0334e4e08e2d7257f12e2718f13e9322401431a..bce77659a5f315e7439f025eea40401fa8e3d333 100755 (executable)
@@ -1125,9 +1125,9 @@ def render_atom(articles):
     <published>%(ciso)sZ</published>
     <updated>%(uiso)sZ</updated>
     <content type="xhtml">
     <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
 %(contents)s
-      </p></div>
+      </div>
     </content>
   </entry>
                """ % vars
     </content>
   </entry>
                """ % vars