Mercurial > hg > octave-lyh
diff src/ls-oct-ascii.cc @ 10416:f06ede00fd8f
save: separate variables by blank line in Octave text format files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 16 Mar 2010 15:04:40 -0400 |
parents | 57a59eae83cc |
children | ad29dbbc3f70 |
line wrap: on
line diff
--- a/src/ls-oct-ascii.cc +++ b/src/ls-oct-ascii.cc @@ -333,6 +333,12 @@ success = val.save_ascii (os); + // Insert an extra newline after data set so that multiple data + // elements may be handled separately by gnuplot (see the description + // of the index qualifier for the plot command in the gnuplot + // documentation). + os << "\n"; + os.precision (old_precision); return (os && success);