mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 09:33:06 +02:00
Fix csv output to use "" for an empty string.
This commit is contained in:
@@ -232,11 +232,11 @@ public class CsvTrackWriter implements TrackFormatWriter {
|
||||
}
|
||||
isFirst = false;
|
||||
|
||||
builder.append('"');
|
||||
if (value != null) {
|
||||
builder.append('"');
|
||||
builder.append(value.replaceAll("\"", "\"\""));
|
||||
builder.append('"');
|
||||
}
|
||||
builder.append('"');
|
||||
}
|
||||
printWriter.println(builder.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user