forked from upstream-mirrors/OpenTracks
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;
|
isFirst = false;
|
||||||
|
|
||||||
|
builder.append('"');
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
builder.append('"');
|
|
||||||
builder.append(value.replaceAll("\"", "\"\""));
|
builder.append(value.replaceAll("\"", "\"\""));
|
||||||
builder.append('"');
|
|
||||||
}
|
}
|
||||||
|
builder.append('"');
|
||||||
}
|
}
|
||||||
printWriter.println(builder.toString());
|
printWriter.println(builder.toString());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user