internal: fmt.Println -> fmt.Fprintln

This commit is contained in:
Weixie Cui 2026-04-20 20:54:12 +08:00
parent eb67d61933
commit cc9c6f4148

View file

@ -221,7 +221,7 @@ func (w *indentWriter) Write(b []byte) (n int, err error) {
// flush ensures the current line is terminated.
func (w *indentWriter) flush() {
if w.inLine {
fmt.Println(w.out)
fmt.Fprintln(w.out)
w.inLine = false
}
}