Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions standard_renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ func (r *standardRenderer) write(s string) {
defer r.mtx.Unlock()
r.buf.Reset()

// Remove carriage returns to avoid messing up rendering.
s = strings.ReplaceAll(s, "\r", "")

// If an empty string was passed we should clear existing output and
// rendering nothing. Rather than introduce additional state to manage
// this, we render a single space as a simple (albeit less correct)
Expand Down
Loading