# HG changeset patch # User Chris Cannam # Date 1579007958 0 # Node ID 77ffd542162700f08821c608cf4c4a4b3846615b # Parent 1f80a514ce296c7d89f3faa9806a28a4fbee1097 Don't write empty lines diff -r 1f80a514ce29 -r 77ffd5421627 layer/Colour3DPlotExporter.cpp --- a/layer/Colour3DPlotExporter.cpp Fri Jan 10 14:54:27 2020 +0000 +++ b/layer/Colour3DPlotExporter.cpp Tue Jan 14 13:19:18 2020 +0000 @@ -235,8 +235,10 @@ list << QString("%1").arg(value); } } - - s += list.join(delimiter) + "\n"; + + if (!list.empty()) { + s += list.join(delimiter) + "\n"; + } } return s;