mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-17 12:31:06 +01:00
cleanup
This commit is contained in:
2
TODO.md
2
TODO.md
@@ -1,5 +1,7 @@
|
|||||||
## Fixes to be implemented
|
## Fixes to be implemented
|
||||||
|
|
||||||
|
- highlighting does not repeat, only 1 will be highlighted, see #3
|
||||||
|
|
||||||
- rm printYamlData() log.Fatal(), maybe return error on all printers?
|
- rm printYamlData() log.Fatal(), maybe return error on all printers?
|
||||||
|
|
||||||
- refactor parser, there's some duplicate code
|
- refactor parser, there's some duplicate code
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ import (
|
|||||||
"bufio"
|
"bufio"
|
||||||
"encoding/csv"
|
"encoding/csv"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"github.com/alecthomas/repr"
|
"github.com/alecthomas/repr"
|
||||||
"github.com/tlinden/tablizer/cfg"
|
"github.com/tlinden/tablizer/cfg"
|
||||||
"io"
|
"io"
|
||||||
@@ -62,7 +61,7 @@ func parseCSV(c cfg.Config, input io.Reader, pattern string) (Tabdata, error) {
|
|||||||
}
|
}
|
||||||
content = strings.NewReader(strings.Join(lines, "\n"))
|
content = strings.NewReader(strings.Join(lines, "\n"))
|
||||||
}
|
}
|
||||||
fmt.Println(content)
|
|
||||||
csvreader := csv.NewReader(content)
|
csvreader := csv.NewReader(content)
|
||||||
csvreader.Comma = rune(c.Separator[0])
|
csvreader.Comma = rune(c.Separator[0])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user