diff --git a/src/TNL/Matrices/MatrixWriter_impl.h b/src/TNL/Matrices/MatrixWriter_impl.h index 1db1a9df9e63435e9052aa65f4d35527038278bc..40368d0dd9fc157ff90ee0766add1cb64f2acca7 100644 --- a/src/TNL/Matrices/MatrixWriter_impl.h +++ b/src/TNL/Matrices/MatrixWriter_impl.h @@ -26,7 +26,7 @@ bool MatrixWriter< Matrix >::writeToGnuplot( std::ostream& str, { RealType elementValue = matrix.getElement( row, column ); if( elementValue != ( RealType ) 0.0 ) - str << column << " " << row << " " << elementValue << std::endl; + str << column << " " << row << " " << elementValue << "\n"; } if( verbose ) std::cout << "Drawing the row " << row << " \r" << std::flush; @@ -86,7 +86,7 @@ bool MatrixWriter< Matrix >::writeEpsBody( std::ostream& str, { str << ( column - lastColumn ) * elementSize << " " << -( row - lastRow ) * elementSize - << " translate newpath 0 0 " << elementSize << " " << elementSize << " rectstroke" << std::endl; + << " translate newpath 0 0 " << elementSize << " " << elementSize << " rectstroke\n"; lastColumn = column; lastRow = row; }