diff options
author | Rodrigo Severo <rodrigo@fabricadeideias.com> | 2014-01-13 21:12:30 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-14 21:08:31 +0700 |
commit | 2da8146b46b6a6ed959d536249078b3ce1f5e329 (patch) | |
tree | ff49f0a75ecccf9a7e7cdffeb302f6025768eb62 | |
parent | 3ce5520b9cd04edff9ed048e274a0e4a53cc6584 (diff) | |
download | subsurface-2da8146b46b6a6ed959d536249078b3ce1f5e329.tar.gz |
Include support for semicolon separated CSV files
Oceanic's Geo's companion software, OceanLog, when exporting as txt produces log files with the dives samples as semicolon separated CSV files.
Signed-off-by: Rodrigo Severo <rodrigo@fabricadeideias.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 1 | ||||
-rw-r--r-- | xslt/csv2xml.xslt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index e5814795d..55907a39d 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -24,6 +24,7 @@ DiveLogImportDialog::DiveLogImportDialog(QStringList *fn, QWidget *parent) : ui->CSVSeparator->addItem("Tab"); ui->CSVSeparator->addItem(","); + ui->CSVSeparator->addItem(";"); ui->knownImports->setCurrentIndex(1); connect(ui->CSVDepth, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int))); diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt index f21fced13..87d494f30 100644 --- a/xslt/csv2xml.xslt +++ b/xslt/csv2xml.xslt @@ -19,6 +19,7 @@ <xsl:variable name="fs"> <xsl:choose> <xsl:when test="$separatorIndex = 0"><xsl:text> </xsl:text></xsl:when> + <xsl:when test="$separatorIndex = 2"><xsl:text>;</xsl:text></xsl:when> <xsl:otherwise><xsl:text>,</xsl:text></xsl:otherwise> </xsl:choose> </xsl:variable> |