FIX: CSV export quote should comply rfc4180. Related to #791.

This commit is contained in:
Mészáros Gergely 2022-05-07 11:30:33 +02:00
parent 67f8c68983
commit 5a35f0d320

View file

@ -171,7 +171,7 @@ function overviewMarkers() {
function exportMarkers() {
const headers = "Id,Type,Icon,Name,Note,X,Y\n";
const quote = s => '"' + s.replace('"', "'") + '"';
const quote = s => '"' + s.replaceAll('"', '""') + '"';
const body = pack.markers.map(marker => {
const {i, type, icon, x, y} = marker;