diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2019-10-24 12:12:58 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2019-10-24 12:12:58 +0100 |
commit | e9aa53ccc3572bd17c22a3aa99851863cd2bde82 (patch) | |
tree | dcbbc86549a54c6d7aceaebc830bfeae6262461d /reader/reader.go | |
parent | cdadb51e3e4ef5fb96da41496bafb11572ec487e (diff) |
more testing
Diffstat (limited to '')
-rw-r--r-- | reader/reader.go | 5 |
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) |