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:
parent
df9d67a7c9
commit
2214b15f44
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue