diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-12-04 15:19:28 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-04 15:27:09 -0800 |
commit | b5d3476b0ba881699c604a3d97c5801b8bb99a08 (patch) | |
tree | 788be1551df2a7f26e2aa2e905994250e0d929af /dives | |
parent | 5fc50b2aaba122bf0c7b4251565800aec7a1e4a1 (diff) | |
download | subsurface-b5d3476b0ba881699c604a3d97c5801b8bb99a08.tar.gz |
Allow comma separated CSV files
The separator selector in the CSV import dialog was unused. This passes
the value into the xslt and adds ',' as possible value.
I'm sure this could be done much better (pass the actual character instead
of the index), but I couldn't get that to work and this does seem to do
the trick.
Also added a test dive to test this feature.
Fixes #321
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dives')
-rw-r--r-- | dives/TestComma.csv | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dives/TestComma.csv b/dives/TestComma.csv new file mode 100644 index 000000000..2294a7001 --- /dev/null +++ b/dives/TestComma.csv @@ -0,0 +1,27 @@ +Dive Time (s),Depth (m),PPO2 - Setpoint (Bar),PPO2 - C1 Cell 1 (Bar),PPO2 - C1 Cell 2 (Bar),PPO2 - C1 Cell 3 (Bar),PPO2 - C1 Measured (Bar),PPO2 - C2 Cell 1 (Bar),PPO2 - C2 Cell 2 (Bar),PPO2 - C2 Cell 3 (Bar),PPO2 - C2 Measured (Bar),C1 Battery 1 (Volts),C1 Battery 2 (Volts),C2 Battery 1 (Volts),C2 Battery 2 (Volts),Ambient Temp. (Celcius),OTU Exposure (%),CNS Exposure (%),Deco Ceiling (m),Gradient Factor +0,0.0,0,0,0,0,0,0,0,0,0,0,0,0,0,19.00,0,0,0,0 +60,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,18.00,0,0,0,0 +120,4.5,0,0,0,0,0,0,0,0,0,0,0,0,0,18.00,0,0,0,0 +180,5.0,0,0,0,0,0,0,0,0,0,0,0,0,0,18.00,0,0,0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