]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
*** empty log message ***
authorvsv <vsv@opencascade.com>
Mon, 25 Aug 2008 14:56:12 +0000 (14:56 +0000)
committervsv <vsv@opencascade.com>
Mon, 25 Aug 2008 14:56:12 +0000 (14:56 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_IParameters.cxx

index 876bcf344c64c7331510e3d7baefe6ecffeeeb2c..2d80d7cf87e7add46219a987a79f0c9051e63b2c 100644 (file)
@@ -280,8 +280,13 @@ string SALOMEDSImpl_IParameters::getStudyScript(SALOMEDSImpl_Study* study, int s
     for(int i = 0; i<v.size(); i++) {
       vector<string> lst = ip.getValues(v[i]);
       dump += "# fill list "+v[i]+"\n";
-      for(int j = 0; j < lst.size(); j++)
-       dump += "ipar.append(\""+v[i]+"\", \""+lst[j]+"\")\n";
+      for(int j = 0; j < lst.size(); j++) {
+       printf("### %s \nFind : %i\n",lst[j].c_str(), lst[j].find('\"'));
+       if (lst[j].find('\"') == -1)
+         dump += "ipar.append(\""+v[i]+"\", \""+lst[j]+"\")\n";
+       else
+         dump += "ipar.append(\""+v[i]+"\", \"\"\""+lst[j]+"\"\"\")\n";
+      }
     }
   }