Mercurial > hg > octave-lyh
comparison src/ls-oct-ascii.cc @ 10417:ad29dbbc3f70
save: make that two newline characters
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 16 Mar 2010 17:03:55 -0400 |
parents | f06ede00fd8f |
children | 89f4d7e294cc |
comparison
equal
deleted
inserted
replaced
10416:f06ede00fd8f | 10417:ad29dbbc3f70 |
---|---|
331 long old_precision = os.precision (); | 331 long old_precision = os.precision (); |
332 os.precision (precision); | 332 os.precision (precision); |
333 | 333 |
334 success = val.save_ascii (os); | 334 success = val.save_ascii (os); |
335 | 335 |
336 // Insert an extra newline after data set so that multiple data | 336 // Insert an extra pair of newline characters after the data so that |
337 // elements may be handled separately by gnuplot (see the description | 337 // multiple data elements may be handled separately by gnuplot (see |
338 // of the index qualifier for the plot command in the gnuplot | 338 // the description of the index qualifier for the plot command in the |
339 // documentation). | 339 // gnuplot documentation). |
340 os << "\n"; | 340 os << "\n\n"; |
341 | 341 |
342 os.precision (old_precision); | 342 os.precision (old_precision); |
343 | 343 |
344 return (os && success); | 344 return (os && success); |
345 } | 345 } |