diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-06-02 00:44:21 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-06-02 00:44:21 +0300 |
commit | b9079e22d201e92e54275480fb6007d7d9900141 (patch) | |
tree | 4a60221bcde5c8226788e501ab3df16c533185db /ui/messages/parser/htmlparser.go | |
parent | 134604edce935a0017b50c16687429e0b25248e6 (diff) |
Gofmt
Diffstat (limited to 'ui/messages/parser/htmlparser.go')
-rw-r--r-- | ui/messages/parser/htmlparser.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |