Hi,

Le mardi 25 septembre 2012, à 00:45 +0100, Nelson Manuel Marques a écrit :
> +def replace_lang_macros(s):
> +    return re.sub(r'%find_lang(.*)', r'%find_lang\1 %{?no_lang_C}', s)

Wouldn't this replace "%find_lang %{?no_lang_C} foo" with
"%find_lang %{?no_lang_C} foo %{?no_lang_C}"?

You probably need to check if %{?no_lang_C} is there before doing the
substitution.

Cheers,

Vincent

-- 
Les gens heureux ne sont pas pressés.
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to