]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 415539: Remove trailing whitespaces from bugmail
authormkanat%bugzilla.org <>
Fri, 8 Feb 2008 02:14:42 +0000 (02:14 +0000)
committermkanat%bugzilla.org <>
Fri, 8 Feb 2008 02:14:42 +0000 (02:14 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

Bugzilla/BugMail.pm

index 85393a74e89391936a33ba649de424591e87719f..13f25b5b43c12451c3250724656015ad8a1d0216 100644 (file)
@@ -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;
 }