Salome HOME
commentaire
[tools/eficas.git] / Traducteur / inseremocle.py
index 29de1a015d249aedf6da4650eddd909c14b891b8..8e517dbd05b6d536d3abffec70d54567224ff941 100644 (file)
@@ -60,9 +60,9 @@ def insereMotCleDansCommande(jdc,command,texte):
     if numcol > 0 :            # Les mots clefs etaient sur la même ligne
         jdc.joinLineandNext(command.lineno)
 
-#---------------------------------------------
-def insereMotCleDansFacteur(jdc,facteur,texte):
-#-------------------------------------------------
+#-------------------------------------------------------------
+def insereMotCleDansFacteur(jdc,facteur,texte,plusieursFois=True):
+#----------------------------------------------------------------
     if debug : print "insereMotCle ", texte , " dans ", facteur.name
 
     if texte[-1] == "\n" : texte=texte[0:-1] 
@@ -138,7 +138,7 @@ def insereMotCleDansFacteur(jdc,facteur,texte):
 
         ligneaCouper=ligneaCouper+1
         ancien=jdc.getLine(ligneaCouper)
-        if trouve : break
+        if not plusieursFois and trouve : break
 
 
 #-----------------------------------