Fix newline-color bug

This commit is contained in:
maride 2019-12-04 18:21:59 +01:00
parent 7dfc4cb514
commit 77304668ad

View File

@ -7,7 +7,7 @@ import (
const ( const (
MaxContentLines = 50 MaxContentLines = 50
SnipMark = "----- cut at 50 entries -----\n" SnipMark = "----- cut at 50 entries -----"
) )
var ( var (
@ -64,6 +64,6 @@ func cutContent(content string) string {
// Adds a notice about the snipping process // Adds a notice about the snipping process
func addSnipMark(content string) string { func addSnipMark(content string) string {
printer := color.New(color.Bold) printer := color.New(color.Bold, color.BgBlack)
return content + "\n" + printer.Sprint(SnipMark) return content + "\n" + printer.Sprint(SnipMark) + "\n"
} }