mirror of
https://codeberg.org/scip/tablizer.git
synced 2026-03-23 17:40:57 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4d76f7ff5 |
@@ -28,7 +28,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version = "v1.6.1"
|
Version = "v1.6.2"
|
||||||
MAXPARTS = 2
|
MAXPARTS = 2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -258,7 +258,8 @@ func printASCIIData(writer io.Writer, conf cfg.Config, data *Tabdata) {
|
|||||||
// we need to trim our output here, because tablewriter appends
|
// we need to trim our output here, because tablewriter appends
|
||||||
// excess whitespace to our rows.
|
// excess whitespace to our rows.
|
||||||
cleanedString := &strings.Builder{}
|
cleanedString := &strings.Builder{}
|
||||||
for _, row := range strings.Split(tableString.String(), "\n") {
|
|
||||||
|
for _, row := range strings.Split(strings.TrimSpace(tableString.String()), "\n") {
|
||||||
cleanedString.WriteString(strings.TrimSpace(row))
|
cleanedString.WriteString(strings.TrimSpace(row))
|
||||||
cleanedString.WriteString("\n")
|
cleanedString.WriteString("\n")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user