diff options
author | mkanat%bugzilla.org <> | 2008-02-08 02:14:42 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-02-08 02:14:42 +0000 |
commit | 1f0e11b9bbe5b880c488b214a45755792646f0b3 (patch) | |
tree | d239eee43233d95db4f00b104288a3ffb0c7d5e3 /Bugzilla | |
parent | Bug 61487: describe "Normal" severity in "A Bug's Life Cycle" - Patch by Ecli... (diff) | |
download | bugzilla-1f0e11b9bbe5b880c488b214a45755792646f0b3.tar.gz bugzilla-1f0e11b9bbe5b880c488b214a45755792646f0b3.tar.bz2 bugzilla-1f0e11b9bbe5b880c488b214a45755792646f0b3.zip |
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; } |