From 2214b15f4430721d3d15f57c99c61d119ff861ee Mon Sep 17 00:00:00 2001 From: Shautvast Date: Wed, 18 Feb 2026 09:52:52 +0100 Subject: [PATCH] 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 --- src/inbox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inbox.rs b/src/inbox.rs index 4acbf73..070563e 100644 --- a/src/inbox.rs +++ b/src/inbox.rs @@ -238,5 +238,5 @@ fn find_part(mail: &mailparse::ParsedMail, mime_type: &str) -> Option { } 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()) }