Re: [PATCH] : Final clean-up patch for address-entry



> 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]