Increase html2text wrap width to avoid breaking long URLs

Let Ratatui handle visual line wrapping instead of html2text splitting
lines at 80 columns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Shautvast 2026-02-18 09:52:52 +01:00
parent df9d67a7c9
commit 2214b15f44

View file

@ -238,5 +238,5 @@ fn find_part(mail: &mailparse::ParsedMail, mime_type: &str) -> Option<String> {
} }
fn html_to_text(html: &str) -> String { fn html_to_text(html: &str) -> String {
html2text::from_read(html.as_bytes(), 80).unwrap_or_else(|_| html.to_string()) html2text::from_read(html.as_bytes(), 1000).unwrap_or_else(|_| html.to_string())
} }