on main help sign in
Merge pull request #232 from charmbracelet/bash-tabs

fix(tui): renderer: replace tabs with spaces in plain content

commit909bb2150ab9be02d880227a4575c870c84d4446 authorKujtim Hoxha <kujtimii.h@gmail.com> dateFri 18 Jul 2025, 10:07 (1 year ago) parentfe0f4bba236ede
1 file changed+1
internal/tui/components/chat/messages/renderer.go+1
internal/tui/components/chat/messages/renderer.go+1
@@ -656,6 +656,7 @@ func joinHeaderBody(header, body string) string {
656656func renderPlainContent(v *toolCallCmp, content string) string {
657657 t := styles.CurrentTheme()
658658 content = strings.ReplaceAll(content, "\r\n", "\n") // Normalize line endings
659+ content = strings.ReplaceAll(content, "\t", " ") // Replace tabs with spaces
659660 content = strings.TrimSpace(content)
660661 lines := strings.Split(content, "\n")
661662