diff options
author | mkanat%bugzilla.org <> | 2009-08-19 04:44:52 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-08-19 04:44:52 +0000 |
commit | c9806c3558e6a37c748488520d0c83e471809104 (patch) | |
tree | 3420909409dc0314802b907bf2fcc78f54927295 /Bugzilla | |
parent | 92f86cba3806a13936dc5dc3d341194bd60f4af6 (diff) | |
download | bugs-c9806c3558e6a37c748488520d0c83e471809104.tar bugs-c9806c3558e6a37c748488520d0c83e471809104.tar.gz bugs-c9806c3558e6a37c748488520d0c83e471809104.tar.bz2 bugs-c9806c3558e6a37c748488520d0c83e471809104.tar.xz bugs-c9806c3558e6a37c748488520d0c83e471809104.zip |
Bug 73330: Remove extra newlines in bugmail
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/BugMail.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 9a1b2a8a2..ec4bf30da 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -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) { |