aboutsummaryrefslogtreecommitdiffstats
path: root/reader/reader.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-10-24 12:12:58 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2019-10-24 12:12:58 +0100
commite9aa53ccc3572bd17c22a3aa99851863cd2bde82 (patch)
treedcbbc86549a54c6d7aceaebc830bfeae6262461d /reader/reader.go
parentcdadb51e3e4ef5fb96da41496bafb11572ec487e (diff)
more testing
Diffstat (limited to '')
-rw-r--r--reader/reader.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/reader/reader.go b/reader/reader.go
index 95ef193..e4a6915 100644
--- a/reader/reader.go
+++ b/reader/reader.go
@@ -51,7 +51,10 @@ func ReadDML(path string) (*[]DatamapLine, error) {
// this must be the header
continue
}
- dml := DatamapLine{Key: record[0], Sheet: record[1], Cellref: record[2]}
+ dml := DatamapLine{
+ Key: strings.Trim(record[0], " "),
+ Sheet: strings.Trim(record[1], " "),
+ Cellref: strings.Trim(record[2], " ")}
s = append(s, dml)
// fmt.Printf("Key: %s; sheet: %s cellref: %s\n", dml.Key, dml.Sheet, dml.Cellref)
// klen, slen := Keylens(dml)