classpathx-javamail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-javamail] Fix to encoding of space in gnu.mail.util.QPOu


From: Chris Burdess
Subject: Re: [Classpathx-javamail] Fix to encoding of space in gnu.mail.util.QPOutputStream
Date: Thu, 29 Jan 2004 17:41:02 +0100

Øyvind Harboe wrote:
Space was being output twice.

This seems to fix the problem.

I've applied your patch, plus the following modification:

Index: QPOutputStream.java
===================================================================
retrieving revision 1.3
diff -u -r1.3 QPOutputStream.java
--- QPOutputStream.java 19 Mar 2003 18:28:38 -0000      1.3
+++ QPOutputStream.java 29 Jan 2004 13:55:56 -0000
@@ -111,7 +111,11 @@
    */
   public void flush() throws IOException
   {
-    out.flush();
+       if (gotSpace)
+       {
+               output(' ', false);

+         gotSpace = false;

+       }
+       out.flush();
   } // flush()

Thank you, as ever.
--
Chris Burdess





reply via email to

[Prev in Thread] Current Thread [Next in Thread]