]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Adjust the dumper to Python to avoid spaces at the end of lines.
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Mon, 21 Sep 2020 20:28:37 +0000 (23:28 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Mon, 21 Sep 2020 20:28:37 +0000 (23:28 +0300)
src/ModelHighAPI/ModelHighAPI_Dumper.cpp

index 6d8affba893069289e3e0b5ae1a3b8d62f4a3d9c..9d2c5e5f0f96ca5eede7510c24473e650a8c86db 100644 (file)
@@ -1505,12 +1505,12 @@ ModelHighAPI_Dumper& ModelHighAPI_Dumper::operator<<(
       }
 
       if(isAdded) {
-        *myDumpStorage << ", ";
         // print each attribute on separate line with the appropriate shift
         if (aNbSpaces > 0) {
           std::string aSpaces(aNbSpaces + 1, ' ');
-          *myDumpStorage << "\n" << aSpaces;
-        }
+          *myDumpStorage << ",\n" << aSpaces;
+        } else
+          *myDumpStorage << ", ";
       } else {
         isAdded = true;
       }