From 1bd7806dcff2f1f1669bb5bfabbf662b7cedb7af Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Fri, 28 Apr 2023 13:15:31 +1200 Subject: [PATCH] Desktop: Change 'CSV summary dive details' output from TSV to CSV. Change the output formato for the Export / 'CSV summary dive details' from TSV to CSV, to make it consistent with the menu item name, and with the other 'CSV' export function. This was changed to TSV by @mturkia in https://github.com/subsurface/subsurface/commit/6c825785401ea3e450795db8887eba9444c9b7b5, but I could not find any discussion as to why. Also removed replacement of the field separator in any fields, as, according to the CSV RFC (https://datatracker.ietf.org/doc/html/rfc4180) this is not required as long as the fields containing separators are enclosed in quotes, and any quotes within the fields are doubled up. Tested with a fairly large log file, and importing into Google Sheets is working fine for the output produced. Also made capitalisation of the Export menu items consistent. Signed-off-by: Michael Keller --- CHANGELOG.md | 1 + desktop-widgets/divelogexportdialog.ui | 4 ++-- xslt/xml2manualcsv.xslt | 26 +++++++++++++------------- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17deea5ff..8e2ef55a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +export: change format produced by 'CSV summary dive details' from TSV (tab separated) to CSV import: add option to synchronise dive computer time when downloading dives core: fix bug when save sea water salinity given by DC desktop: add option to force firmware update on OSTC4 diff --git a/desktop-widgets/divelogexportdialog.ui b/desktop-widgets/divelogexportdialog.ui index d5ea9c0f2..cc2159ddb 100644 --- a/desktop-widgets/divelogexportdialog.ui +++ b/desktop-widgets/divelogexportdialog.ui @@ -267,7 +267,7 @@ - CSV Dive computer dive profile + CSV dive computer dive profile exportGroup @@ -277,7 +277,7 @@ - CSV Computed Profile Panel data + CSV computed profile panel data exportGroup diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt index b262076cc..8dbe04703 100644 --- a/xslt/xml2manualcsv.xslt +++ b/xslt/xml2manualcsv.xslt @@ -6,7 +6,7 @@ - + , @@ -398,8 +398,8 @@ " - - + + " @@ -509,9 +509,9 @@ " - - - + + + " @@ -519,8 +519,8 @@ " - - + + " @@ -529,8 +529,8 @@ " - - + + " @@ -539,9 +539,9 @@ " - - - + + + "