Mercurial > hg > octave-max
changeset 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 | 976e76b77fa0 |
children | ad29dbbc3f70 |
files | src/ChangeLog src/ls-oct-ascii.cc |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-03-16 John W. Eaton <jwe@octave.org> + + * ls-oct-ascii.cc (save_ascii_data): Insert extra newline after + data is written to file. From Brett Stewart <btstewart@wisc.edu>. + 2010-03-16 Jaroslav Hajek <highegg@gmail.com> * ov-base.h (unary_mapper_t::umap_cbrt): New enum member.
--- 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);