[Top][All Lists]

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

Re: [Pan-users] The "no-break-space" problem, aka "blank" posts, that sh

From: walt
Subject: Re: [Pan-users] The "no-break-space" problem, aka "blank" posts, that shouldn't be
Date: Fri, 25 Dec 2009 10:16:52 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a1pre) Gecko/20091225 Thunderbird/3.1a1pre

On 12/24/2009 11:21 PM, K. Haley wrote:
On 12/3/2009 11:44 PM, K. Haley wrote:
the issue was the line wrap code assuming that all spaces were only one
utf-8 char wide.  The non-breaking space is two 0xc2a0.  The new code
should not only fix that but support the non-breaking part as well.

I've just updated this to support spaces that might be encoded to more
than two bytes.  The update is on the testing branch.  You might need to use
git fetch --all
to get the branch the first time.  At least it's supposed to update all
remote branches.

Hi, and happy holidays!

I think there's a typo at

         if (pos>=column && linefeed_here!=NULL)
            const char nl[5]="   \n";
            if( space_len == 1)
             else    <==================== delete?
               memcpy( linefeed_here, 4 - space_len + nl, space_len);
            pch = linefeed_here + space_len;
            linefeed_here = NULL;
            space_len = 0;
            pos = 0;

Thanks again for helping with pan.

reply via email to

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