Re: [evolution-patches] Fix for bug#306986
- From: "Veerapuram Varadhan" <vvaradhan novell com>
- To: "S Rohini" <SRohini novell com>
- Cc: evolution-patches gnome org
- Subject: Re: [evolution-patches] Fix for bug#306986
- Date: Mon, 19 Dec 2005 03:26:43 -0700
On Mon, 2005-12-19 at 08:57 +0000, Rohini wrote:
> +static void
> +html_engine_strip_quote(gchar *word)
> +{
> + if(word[0]=='\'' && word[strlen(word)-1]=='\'') {
> + int i;
> +
> + for(i=1;i<strlen(word)-1;i++)
> + word[i-1]=word[i];
> + word[strlen(word)-2]='\0';
> + }
Can we do this '\'' check in html_engine_get_spell_word itself?
IMO, just before doing g_string_append () in html_engine_get_spell_word,
checking for '\'' would avoid this new function.
V. Varadhan
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]