mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move model tagging to xslt
Instead of replacing all the empty model tags after a csv to xml transform with some text, just produce that text in the csv to xml transform instead. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f04b3bc166
commit
4867363ec5
2 changed files with 7 additions and 11 deletions
5
file.c
5
file.c
|
@ -927,11 +927,6 @@ int parse_csv_file(const char *filename, int timef, int depthf, int tempf, int p
|
|||
previous = dive_table.nr;
|
||||
ret = parse_xml_buffer(filename, mem.buffer, mem.size, &dive_table, (const char **)params);
|
||||
|
||||
// mark imported dives as imported from CSV
|
||||
for (int i = previous; i < dive_table.nr; i++)
|
||||
if (same_string(get_dive(i)->dc.model, ""))
|
||||
get_dive(i)->dc.model = copy_string("Imported from CSV");
|
||||
|
||||
free(mem.buffer);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue