diff options
author | mkanat%bugzilla.org <> | 2008-02-08 03:14:42 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-02-08 03:14:42 +0100 |
commit | 1f0e11b9bbe5b880c488b214a45755792646f0b3 (patch) | |
tree | d239eee43233d95db4f00b104288a3ffb0c7d5e3 /Bugzilla | |
parent | 867c349d0de51c8b3aafe57037bebd740ec7347f (diff) | |
download | bugzilla-1f0e11b9bbe5b880c488b214a45755792646f0b3.tar.gz bugzilla-1f0e11b9bbe5b880c488b214a45755792646f0b3.tar.xz |
Bug 415539: Remove trailing whitespaces from bugmail
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/BugMail.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 85393a74e..13f25b5b4 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -86,7 +86,11 @@ sub multiline_sprintf { # Make any single undef item into '' @line = map { defined $_ ? $_ : '' } @line; # And append a formatted line - $formatted .= sprintf("$format\n", @line); + $formatted .= sprintf($format, @line); + # Remove trailing spaces, or they become lots of =20's in + # quoted-printable emails. + $formatted =~ s/\s+$//; + $formatted .= "\n"; } return $formatted; } |