Mercurial > hg > svcore
diff data/fileio/CSVStreamWriter.h @ 1609:560453546749 single-point
Start some sparse model tests
author | Chris Cannam |
---|---|
date | Tue, 05 Mar 2019 13:21:55 +0000 |
parents | 743c38b209d0 |
children | ea4f3593c39c |
line wrap: on
line diff
--- a/data/fileio/CSVStreamWriter.h Wed Feb 27 12:31:12 2019 +0000 +++ b/data/fileio/CSVStreamWriter.h Tue Mar 05 13:21:55 2019 +0000 @@ -58,6 +58,7 @@ sv_frame_t nFramesWritten = 0; int previousProgress = 0; + bool started = false; for (const auto& extents : selections) { const auto startFrame = extents.getStartFrame(); @@ -76,7 +77,12 @@ ).trimmed(); if ( data != "" ) { - oss << data << (end < finalFrameOfLastRegion ? "\n" : ""); + if (started) { + oss << "\n"; + } else { + started = true; + } + oss << data; } nFramesWritten += end - start;