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 /dive.h | |
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 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -626,7 +626,7 @@ extern void set_filename(const char *filename, bool force); extern int parse_dm4_buffer(const char *url, const char *buf, int size, struct dive_table *table, char **error); extern void parse_file(const char *filename, char **error); -extern void parse_csv_file(const char *filename, int time, int depth, int temp, int po2f, int cnsf, int stopdepthf, char **error); +extern void parse_csv_file(const char *filename, int time, int depth, int temp, int po2f, int cnsf, int stopdepthf, int sepidx, char **error); extern void save_dives(const char *filename); extern void save_dives_logic(const char *filename, bool select_only); |