Commit c9806c35 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 73330: Remove extra newlines in bugmail

Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent 92f86cba
......@@ -352,7 +352,7 @@ sub Send {
if ($deptext) {
my $diffpart = {};
$diffpart->{'text'} = "\n" . trim("\n\n" . $deptext);
$diffpart->{'text'} = "\n" . trim($deptext);
push(@diffparts, $diffpart);
}
}
......@@ -595,6 +595,8 @@ sub sendMail {
}
my $diffs = $difftext;
# Remove extra newlines.
$diffs =~ s/^\n+//s; $diffs =~ s/\n+$//s;
if ($isnew) {
my $head = "";
foreach my $f (@headerlist) {
......
......@@ -41,8 +41,10 @@ X-Bugzilla-Changed-Fields: [% changedfields %]
[%+ threadingmarker %]
[%+ urlbase %]show_bug.cgi?id=[% bugid %]
[%- IF diffs %]
[%+ diffs %]
[% END -%]
[% FOREACH comment = new_comments %]
--- Comment #[% comment.count %] from [% comment.author.identity %] [%+ comment.time FILTER time %] ---
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment