Set TrimLeadingSpace when TrimSpace is on in csv parser (#6773)

This commit is contained in:
Daniel Speichert
2019-12-11 14:25:35 -05:00
committed by Daniel Nelson
parent 61fbc68279
commit 98585a1853
2 changed files with 25 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ func (p *Parser) compile(r *bytes.Reader) (*csv.Reader, error) {
if p.Comment != "" {
csvReader.Comment = []rune(p.Comment)[0]
}
csvReader.TrimLeadingSpace = p.TrimSpace
return csvReader, nil
}