tag 613391 + patch
thanks

Hi Don,

This bug was caused by a change to HTML::Tree's as_HTML method, which
was modified in 4.0 to not include a newline at the end of its return
value:

 https://rt.cpan.org/Public/Bug/Display.html?id=41739

The tests in libhtml-calendarmonth-perl expected these newlines.  The
attached patch fixes this problem by removing the newlines from the
expected values.

-- 
Matt Kraai
https://ftbfs.org/kraai
diff -ru libhtml-calendarmonth-perl-1.19~/t/testload.pm libhtml-calendarmonth-perl-1.19/t/testload.pm
--- libhtml-calendarmonth-perl-1.19~/t/testload.pm	2011-02-15 21:22:34.000000000 -0800
+++ libhtml-calendarmonth-perl-1.19/t/testload.pm	2011-02-15 21:23:52.000000000 -0800
@@ -64,6 +64,7 @@
   my($d, $wb) = split(' ', $_);
   my($y, $m) = split('/', $d);
   my $cal = <D>;
+  chomp $cal;
   push(@Cals, [$y, $m, $cal, $wb]) if $dates{"$y/$m"};
 }
 

Reply via email to