mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
3ce5520b9c
commit
2da8146b46
2 changed files with 2 additions and 0 deletions
|
@ -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)));
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue