Compare commits

..

2 Commits

Author SHA1 Message Date
79bf9af330 bump version 2026-02-19 13:52:19 +01:00
d6dec219a8 fix #50: remove excess spaces in normal ascii table output mode 2026-02-19 13:50:21 +01:00
2 changed files with 2 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ import (
) )
const ( const (
Version = "v1.6.2" Version = "v1.6.1"
MAXPARTS = 2 MAXPARTS = 2
) )

View File

@@ -258,8 +258,7 @@ 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")
} }