Re: Fix to encoding of space in gnu.mail.util.QPOutputStream

Chris Burdess <[email protected]>
Newsgroups gmane.comp.java.classpath.extensions.javamail
Message-ID <[email protected]>
Ø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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.