From 61bcb37cdd263cd819e4640b6c131cbc20df799b Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Fri, 5 May 2017 11:26:09 +0200 Subject: [PATCH] variables to be printed --- generator/generator_TELEMAC.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/generator/generator_TELEMAC.py b/generator/generator_TELEMAC.py index d2444cfa..03607228 100644 --- a/generator/generator_TELEMAC.py +++ b/generator/generator_TELEMAC.py @@ -223,8 +223,9 @@ class TELEMACGenerator(PythonGenerator): return s nom=self.dicoCataToCas[obj.nom] - if nom == "VARIABLES FOR GRAPHIC PRINTOUTS" : s3=s3.replace(';',',') - if nom == "VARIABLES POUR LES SORTIES GRAPHIQUES" : s3=s3.replace(';',',') + if nom in ["VARIABLES FOR GRAPHIC PRINTOUTS", "VARIABLES POUR LES SORTIES GRAPHIQUES", "VARIABLES TO BE PRINTED","VARIABLES A IMPRIMER"] : + s3=s3.replace(';',',') + s3="'"+ s3 +"'" if s3 == "" or s3 == " " : s3 = "None" ligne=nom+ " : " + s3 + "\n" if len(ligne) > 72 : ligne=self.redecoupeLigne(nom,s3) -- 2.39.2