[Bast-commits] r6377 - ironman/plagger/lib/Plagger/Plugin/Publish

szbalint at dev.catalyst.perl.org szbalint at dev.catalyst.perl.org
Fri May 22 21:50:50 GMT 2009


Author: szbalint
Date: 2009-05-22 21:50:50 +0000 (Fri, 22 May 2009)
New Revision: 6377

Modified:
   ironman/plagger/lib/Plagger/Plugin/Publish/Feed.pm
Log:
Should fix the content type attribute of html entries where the post is in html, but it isn't valid xml.


Modified: ironman/plagger/lib/Plagger/Plugin/Publish/Feed.pm
===================================================================
--- ironman/plagger/lib/Plagger/Plugin/Publish/Feed.pm	2009-05-22 21:10:17 UTC (rev 6376)
+++ ironman/plagger/lib/Plagger/Plugin/Publish/Feed.pm	2009-05-22 21:50:50 UTC (rev 6377)
@@ -73,7 +73,7 @@
             if ($feed_format eq 'RSS') {
                 $entry->content($e->body);
             } else {
-                $entry->{entry}->content($e->body->utf8);
+                $entry->{entry}->content(XML::Atom::Content->new(Body => $e->body->utf8, Version => 1.0, Type => $e->body->type));
             }
         }
 




More information about the Bast-commits mailing list