diff --git a/lib/ansimage/doc.go b/lib/ansimage/doc.go index d1898a7..dfc0c43 100644 --- a/lib/ansimage/doc.go +++ b/lib/ansimage/doc.go @@ -2,10 +2,10 @@ // in https://github.com/eliukblau/pixterm focused in rendering images // to a tcell-based TUI app. // -// ___ _____ ____ -// / _ \/ _/ |/_/ /____ ______ _ -// / ___// /_> "Empty room" -// Exactly two users -> The display name of the other user. -// More than two users -> The display name of one of the other users, followed -// by "and X others", where X is the number of users -// excluding the local user and the named user. +// +// Less than two users -> "Empty room" +// Exactly two users -> The display name of the other user. +// More than two users -> The display name of one of the other users, followed +// by "and X others", where X is the number of users +// excluding the local user and the named user. func (room *Room) updateNameFromMembers() { members := room.GetMembers() if len(members) <= 1 { diff --git a/ui/widget/color.go b/ui/widget/color.go index b8dad7e..398e43f 100644 --- a/ui/widget/color.go +++ b/ui/widget/color.go @@ -179,12 +179,14 @@ var colorNames = []string{ // names specified in tcell.ColorNames. // // The algorithm to get the color is as follows: -// colorNames[ FNV1(string) % len(colorNames) ] +// +// colorNames[ FNV1(string) % len(colorNames) ] // // With the exception of the three special cases: -// --> = green -// <-- = red -// --- = yellow +// +// --> = green +// <-- = red +// --- = yellow func GetHashColorName(s string) string { switch s { case "-->":