mirror of
https://github.com/maride/pancap.git
synced 2024-12-22 20:27:29 +00:00
Fix newline-color bug
This commit is contained in:
parent
7dfc4cb514
commit
77304668ad
@ -7,7 +7,7 @@ import (
|
||||
|
||||
const (
|
||||
MaxContentLines = 50
|
||||
SnipMark = "----- cut at 50 entries -----\n"
|
||||
SnipMark = "----- cut at 50 entries -----"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -64,6 +64,6 @@ func cutContent(content string) string {
|
||||
|
||||
// Adds a notice about the snipping process
|
||||
func addSnipMark(content string) string {
|
||||
printer := color.New(color.Bold)
|
||||
return content + "\n" + printer.Sprint(SnipMark)
|
||||
printer := color.New(color.Bold, color.BgBlack)
|
||||
return content + "\n" + printer.Sprint(SnipMark) + "\n"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user