projects
/
hw
/
altusmetrum
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nickle's parse_csv doesn't strip quotes, so we have to
[hw/altusmetrum]
/
bin
/
partslist-vendor
diff --git
a/bin/partslist-vendor
b/bin/partslist-vendor
index 44054c76dee68c90f41d5b0e060b939363112c10..03e3aae4dc2cf7ea855dac121b206a979ff852f7 100755
(executable)
--- a/
bin/partslist-vendor
+++ b/
bin/partslist-vendor
@@
-26,7
+26,11
@@
string[*] read_line(file f) {
lineno++;
string line = fgets(f);
- return String::parse_csv(line);
+ string[*] elts = String::parse_csv(line);
+ for (int i = 0; i < dim(elts); i++)
+ if (elts[i][0] == '"')
+ elts[i] = String::dequote(elts[i]);
+ return elts;
}
string[*] header;