25 Sep
2012
25 Sep
'12
11:52
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: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org