diff --git a/lib/emailreports.pm b/lib/emailreports.pm index 766ad68..4f72063 100644 --- a/lib/emailreports.pm +++ b/lib/emailreports.pm @@ -143,10 +143,15 @@ EOF $html .= join("\n", @tmp); $html .= "
"; - # addendum data included in report - if($emailreports->{$report}->{addendum_script}) { - $html .= <<"EOF"; - + $data =~ s/.*?//; + $e++; + } + } + + # addendum data included in report + if($emailreports->{$report}->{addendum_script}) { + $html .= <<"EOF"; +
\n"; - $html .= " \n"; - $html .= "
@@ -157,16 +162,11 @@ EOF
EOF - $html .= `$emailreports->{$report}->{addendum_script}`; - $html .= "\n"; - $html .= "
\n"; - } - - $data =~ s/.*?//; - $e++; - } + $html .= `$emailreports->{$report}->{addendum_script}`; + $html .= "\n"; + $html .= " \n"; + $html .= " \n"; + $html .= "\n"; } $html .= $html_footer;