summaryrefslogtreecommitdiff
path: root/humanTable.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-18 09:23:28 -0500
committerJeff Carr <[email protected]>2025-10-18 09:23:28 -0500
commit4a74e4af615b6f264c795cb664c55359f588c7c0 (patch)
tree101e95331b66608b560e6e75ebd170a25833f96e /humanTable.go
parent0adadf274d3038074979a9a795d87f49575ff1e5 (diff)
make a smart totally useful DumbTable()v0.0.26
Diffstat (limited to 'humanTable.go')
-rw-r--r--humanTable.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/humanTable.go b/humanTable.go
index 6486dcd..9fe164d 100644
--- a/humanTable.go
+++ b/humanTable.go
@@ -45,7 +45,11 @@ func StandardTableRow(sizes []int, args []string) (string, string) {
if len(line) > TERMSIZE {
small = TERMSIZE
} else {
+ // todo: do something else with this
small = len(line) - 3
+ if small < 0 {
+ small = 0
+ }
}
return line[0:small], strings.Join(fmts, " ")
}