From b9079e22d201e92e54275480fb6007d7d9900141 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 2 Jun 2018 00:44:21 +0300 Subject: Gofmt --- ui/messages/parser/htmlparser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/messages/parser/htmlparser.go') diff --git a/ui/messages/parser/htmlparser.go b/ui/messages/parser/htmlparser.go index 9999c94..98894fd 100644 --- a/ui/messages/parser/htmlparser.go +++ b/ui/messages/parser/htmlparser.go @@ -22,12 +22,12 @@ import ( "regexp" "strings" + "golang.org/x/net/html" "maunium.net/go/gomatrix" "maunium.net/go/gomuks/matrix/rooms" "maunium.net/go/gomuks/ui/messages/tstring" "maunium.net/go/gomuks/ui/widget" "maunium.net/go/tcell" - "golang.org/x/net/html" "strconv" ) @@ -68,7 +68,7 @@ func (parser *htmlParser) getAttribute(node *html.Node, attribute string) string } func digits(num int) int { - return int(math.Floor(math.Log10(float64(num)))+1) + return int(math.Floor(math.Log10(float64(num))) + 1) } func (parser *htmlParser) listToTString(node *html.Node, stripLinebreak bool) tstring.TString { -- cgit v1.2.3