From: Artem Zhidkov Date: Mon, 21 Sep 2020 20:28:37 +0000 (+0300) Subject: Adjust the dumper to Python to avoid spaces at the end of lines. X-Git-Tag: V9_6_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0040e68ca340c8651eca54edee027a1928524df7;p=modules%2Fshaper.git Adjust the dumper to Python to avoid spaces at the end of lines. --- diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index 6d8affba8..9d2c5e5f0 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -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; }