[Bps-public-commit] r19630 - Net-Google-Code/trunk/lib/Net/Google/Code

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue May 12 04:32:39 EDT 2009


Author: sunnavy
Date: Tue May 12 04:32:39 2009
New Revision: 19630

Modified:
   Net-Google-Code/trunk/lib/Net/Google/Code/Wiki.pm

Log:
skip the wiki comment section unless it has commentcontent class below

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Wiki.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Wiki.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Wiki.pm	Tue May 12 04:32:39 2009
@@ -99,6 +99,7 @@
     my @comments = ();
     my @comments_element = $tree->look_down( class => 'artifactcomment' );
     for my $element (@comments_element) {
+        next unless $element->look_down( class => 'commentcontent' );
         require Net::Google::Code::Wiki::Comment;
         my $comment = Net::Google::Code::Wiki::Comment->new;
         $comment->parse($element);



More information about the Bps-public-commit mailing list