From e9aa53ccc3572bd17c22a3aa99851863cd2bde82 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 24 Oct 2019 12:12:58 +0100 Subject: more testing --- reader/reader.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'reader/reader.go') 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) -- cgit v1.2.3