diff options
| author | Jeff Carr <[email protected]> | 2025-10-18 09:23:28 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-18 09:23:28 -0500 |
| commit | 4a74e4af615b6f264c795cb664c55359f588c7c0 (patch) | |
| tree | 101e95331b66608b560e6e75ebd170a25833f96e /humanTable.go | |
| parent | 0adadf274d3038074979a9a795d87f49575ff1e5 (diff) | |
make a smart totally useful DumbTable()v0.0.26
Diffstat (limited to 'humanTable.go')
| -rw-r--r-- | humanTable.go | 4 |
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, " ") } |
