Skip to content

Commit

Permalink
parse hex colors correctly - cred @d5xtgr
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusLindroth committed May 8, 2020
1 parent fbab92c commit a999572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func ColorKey(style StyleConfig, pre, key, end string) string {
}

func ColorMark(color tcell.Color) string {
return fmt.Sprintf("[#%x]", color.Hex())
return fmt.Sprintf("[#%06x]", color.Hex())
}

func FormatUsername(a mastodon.Account) string {
Expand Down

0 comments on commit a999572

Please sign in to comment.