@@ -87,7 +87,7 @@ func (w *coloredEncoderWriter) writeSectionLine(line string) {
8787 content := line [len (streamfmt .SectionPrefix ) : len (line )- len (streamfmt .SectionSuffix )]
8888
8989 fmt .Fprint (w .Encoder , cmd .Colorfy (sectionIndicator , "blue" , "" , "" ))
90- fmt .Fprintf (w .Encoder , " %s \n " , cmd .Colorfy (content , "white " , "" , "bold" ))
90+ fmt .Fprintf (w .Encoder , " %s \n " , cmd .Colorfy (content , "" , "" , "bold" ))
9191}
9292
9393// writeActionLine writes an action line with green arrow, preserving indentation.
@@ -98,15 +98,15 @@ func (w *coloredEncoderWriter) writeActionLine(line string) {
9898
9999 fmt .Fprint (w .Encoder , strings .Repeat (" " , leadingSpaces ))
100100 fmt .Fprint (w .Encoder , cmd .Colorfy (actionArrow , "green" , "" , "bold" ))
101- fmt .Fprintf (w .Encoder , " %s\n " , cmd .Colorfy (content , "white " , "" , "" ))
101+ fmt .Fprintf (w .Encoder , " %s\n " , cmd .Colorfy (content , "" , "" , "reset " ))
102102}
103103
104104// writeErrorLine writes an error line with red cross indicator.
105105func (w * coloredEncoderWriter ) writeErrorLine (line string ) {
106106 content := line [len (streamfmt .ErrorPrefix ) : len (line )- len (streamfmt .ErrorSuffix )]
107107
108108 fmt .Fprint (w .Encoder , cmd .Colorfy (errorCross + errorCross , "red" , "" , "bold" ))
109- fmt .Fprintf (w .Encoder , " %s\n " , cmd .Colorfy (content , "red" , "" , "" ))
109+ fmt .Fprintf (w .Encoder , " %s\n " , cmd .Colorfy (content , "red" , "" , "reset " ))
110110}
111111
112112func NewColoredStreamWriter (encoder io.Writer ) io.Writer {
0 commit comments