This commit is contained in:
2022-10-24 14:05:50 +02:00
parent 138ae51936
commit 5e65726cb0
2 changed files with 3 additions and 2 deletions

View File

@@ -21,7 +21,6 @@ import (
"bufio"
"encoding/csv"
"errors"
"fmt"
"github.com/alecthomas/repr"
"github.com/tlinden/tablizer/cfg"
"io"
@@ -62,7 +61,7 @@ func parseCSV(c cfg.Config, input io.Reader, pattern string) (Tabdata, error) {
}
content = strings.NewReader(strings.Join(lines, "\n"))
}
fmt.Println(content)
csvreader := csv.NewReader(content)
csvreader.Comma = rune(c.Separator[0])