From 43a7bdab7262c015b50e3e673e80389f9514f9ca Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 13 Apr 2019 00:51:58 +0300 Subject: Add better stringification for UI message types for debugging --- ui/messages/html/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/messages/html/base.go') diff --git a/ui/messages/html/base.go b/ui/messages/html/base.go index 8014dc0..75cbd0c 100644 --- a/ui/messages/html/base.go +++ b/ui/messages/html/base.go @@ -78,7 +78,7 @@ func (be *BaseEntity) PlainText() string { // String returns a textual representation of this BaseEntity struct. func (be *BaseEntity) String() string { - return fmt.Sprintf(`&html.BaseEntity{Tag="%s", Style=%d, Block=%t, startX=%d, height=%d},`, + return fmt.Sprintf(`&html.BaseEntity{Tag="%s", Style=%d, Block=%t, startX=%d, height=%d}`, be.Tag, be.Style, be.Block, be.startX, be.height) } -- cgit v1.2.3