mirror of
https://github.com/maride/pancap.git
synced 2024-11-22 08:54:24 +00:00
Fix newline-color bug
This commit is contained in:
parent
7dfc4cb514
commit
77304668ad
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user