ConversationWebView: Fix plain text emails sometimes being too wide
Using `whitespace: pre-wrap` to format plain text email sometimes causes additional width to be allocated by the plain text blocks that then does not get used due to the constraints on the HTML element. The allocated space remains however and hence an un-needed horizontal scrollbar appears. Using `break-spaces` instead seems to help since it allows breaks after a space character, leading to the additional space not otherwise being allocated.
This commit is contained in:
parent
0e783de5bf
commit
ec3057daf7
6 changed files with 6 additions and 6 deletions
|
|
@ -15,7 +15,7 @@ class Geary.RFC822.MessageTest : TestCase {
|
|||
private const string BASIC_MULTIPART_TNEF = "basic-multipart-tnef.eml";
|
||||
|
||||
private const string HTML_CONVERSION_TEMPLATE =
|
||||
"<div class=\"plaintext\" style=\"white-space: pre-wrap;\">%s</div>";
|
||||
"<div class=\"plaintext\" style=\"white-space: break-spaces;\">%s</div>";
|
||||
|
||||
private const string BASIC_PLAIN_BODY = """This is the first line.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue