Re: [PATCH] : Final clean-up patch for address-entry
- From: Emmanuel <e allaud wanadoo fr>
- To: balsa-list gnome org
- Subject: Re: [PATCH] : Final clean-up patch for address-entry
- Date: Wed, 13 Feb 2002 14:08:02 +0100
> Here you could trim leading blanks, if it helps later:
>> + for (current=str;*current;current++) {
>> + if (*current == '"') quoted = !quoted;
>> + else if ( (!quoted) && (*current == delimiter) ) {
>> + glist = g_list_append(glist, g_strndup(old,
>> current-old));
> while (current[1] == ' ')
> ++current;
> + old=current+1;
>> }
>
No, finally you can't do that because you want to be able to have the
actual size on screen, because we want to be able to know in which address
the cursor is so we must take the spaces into account.
Bye
Manu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]