Compare commits

..

2 Commits

Author SHA1 Message Date
T. von Dein
d4d76f7ff5 fix #52: get rid of excess newline on ascii tables (#53) 2026-03-06 11:58:02 +01:00
T. von Dein
e3b3cb3f70 fix-ascii-spacing (#51)
fix #50: remove excess spaces in normal ascii table output mode
2026-02-19 13:55:04 +01:00
2 changed files with 3 additions and 2 deletions

View File

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

View File

@@ -258,7 +258,8 @@ func printASCIIData(writer io.Writer, conf cfg.Config, data *Tabdata) {
// we need to trim our output here, because tablewriter appends
// excess whitespace to our rows.
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("\n")
}