Re: [evolution-patches] Fix for bug#306986 [gtkhtml]



On Wed, 2005-12-21 at 05:22 +0000, Rohini  wrote:
> +       /* remove ' at both ends of word*/
> +       if (text->str[0] == '\'' && text->str[text->len - 1] == '\'')
> {
> +               text->str[0]=text->str[text->len-1]=' ';
> +               text->str=g_strchomp (text->str);
> +               text->str=g_strchug (text->str);
> +               text->len-=2;
> +       }
>   

Looks good, however, how about these words... 'foobar bardoo', both of
them don't have \' in both ends.

(Probably, the above "if" condition can be split in to two.)

V. Varadhan



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