on main help sign in
fix(tui): make sure we treat \r\n as \n
commit625aa473b684ccee984437a436291064d8e88cab authorAyman Bagabas <ayman.bagabas@gmail.com> dateMon 14 Jul 2025, 17:00 (1 year ago) parent82eca73
1 file changed+1
internal/tui/components/chat/messages/renderer.go+1
internal/tui/components/chat/messages/renderer.go+1
@@ -773,6 +773,7 @@ func prettifyToolName(name string) string {
773773// escapeContent escapes ANSI escape sequences and control characters in the
774774// content and styles it for display in the terminal.
775775func escapeContent(t *styles.Theme, content string) string {
776+ content = strings.ReplaceAll(content, "\r\n", "\n")
776777 lines := strings.Split(content, "\n")
777778 for i, line := range lines {
778779 lines[i] = escapeLine(t, line)