diff --git a/src/dehtml.rs b/src/dehtml.rs index 84cce2f46..d8c63c5bf 100644 --- a/src/dehtml.rs +++ b/src/dehtml.rs @@ -392,6 +392,13 @@ mod tests { assert_eq!(txt.trim(), "lots of text"); } + #[test] + fn test_pre_tag() { + let input = "
\ntwo\nlines\n
"; + let txt = dehtml(input).unwrap(); + assert_eq!(txt.trim(), "two\nlines"); + } + #[async_std::test] async fn test_quote_div() { let input = include_str!("../test-data/message/gmx-quote-body.eml");