summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/debug.go b/debug.go
index e820c07..7aeaa33 100644
--- a/debug.go
+++ b/debug.go
@@ -5,6 +5,7 @@ package main
import (
"fmt"
+ "strings"
"github.com/awesome-gocui/gocui"
"go.wit.com/log"
@@ -87,8 +88,13 @@ func (tk *guiWidget) dumpWidget(s string) {
curval := tk.String()
if curval == "" {
curval = tk.node.GetLabel()
+ curval = strings.TrimSpace(curval)
}
- end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, tk.String())
+ if curval == "" {
+ curval = tk.labelN
+ curval = strings.TrimSpace(curval)
+ }
+ end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, curval)
}
log.Log(GOCUI, s1, s, end)
}