summaryrefslogtreecommitdiff
path: root/humanTable.go
diff options
context:
space:
mode:
Diffstat (limited to 'humanTable.go')
-rw-r--r--humanTable.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/humanTable.go b/humanTable.go
index 6c94a60..6c0e803 100644
--- a/humanTable.go
+++ b/humanTable.go
@@ -22,7 +22,7 @@ func StandardTableRow(sizes []int, args []string) (string, string) {
var cell string
var sfmt string
if si < 0 {
- sfmt = "%-s"
+ sfmt = "%-80s"
} else if si == 0 {
sfmt = "%-8.8s"
} else {
@@ -50,6 +50,16 @@ func StandardTableRow(sizes []int, args []string) (string, string) {
return line[0:small], strings.Join(fmts, " ")
}
+func StandardTableRowDebug(sizes []int, args []string) (string, string) {
+ for i, si := range sizes {
+ if len(args) > i {
+ args[i] = fmt.Sprintf("(%d)%s", si, args[i])
+ // cell = fmt.Sprintf(sfmt, val)
+ }
+ }
+ return StandardTableRow(sizes, args)
+}
+
func StandardTableSize5(sizes []int, args []string) string {
WIDTH, _ := getTerminalWidth()
var s string