web: test plain text jammed in HTML more like plain-text
This commit is contained in:
parent
3889b855a5
commit
7f47fe8de6
@ -1058,6 +1058,8 @@ fn message_render(msg: &ShowThreadQueryThreadOnEmailThreadMessages, open: bool)
|
||||
},
|
||||
) => div![
|
||||
C!["view-part-text-html"],
|
||||
// If there isn't any HTML tags, treat more like plain text
|
||||
IF!(!(contents.contains('<') && contents.contains('>')) => C!["whitespace-pre-line"]),
|
||||
raw![contents],
|
||||
IF!(!msg.attachments.is_empty() => render_attachements(&msg.attachments)),
|
||||
view_content_tree(&content_tree),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user