Inserting text in front of a hyperlink in HTML mail composer causes strange line wrapping (due to non-breaking space)
Tested with Evolution 3.38.3 on Fedora 33, I've experienced this with 3.38.x in general, but had trouble narrowing down the issue, until now, where I've come up with a simple enough test case.
Open a new mail composer in HTML mode, paste this as the contents (without styling):
Aaaah, the Onion... https://www.theonion.com/protestors-criticized-for-looting-businesses-without-fo-1843735351
Then, after the three dots, type a space (" ") and paste "such gems as this one:", so that it becomes:
Aaaah, the Onion... such gems as this one: https://www.theonion.com/protestors-criticized-for-looting-businesses-without-fo-1843735351
Then send the email, to someone else or to yourself. Check the resulting sent mail using the vertical (widescreen) preview pane, depending on the X position of the pane, you may see this, where the word "one:" wraps instead of staying on the line above, where there is plenty of space:
As you can see in this video, it may show up or not depending on the width of the preview pane:
...but what's also interesting is that the previous test email I sent to myself, where I pasted the whole contents in one shot (instead of pasting, then modifying what comes before the hyperlink), is NOT affected by the bug. Yet the mail contents, in theory, are the same... except they are not. When you export the two mails as .mbox files and compare with Meld...
...you see that in the case where you edited some text "in front of the hyperlink", Evolution added:
- a line break before the last word in front of the hyperlink in the plaintext version
- a non-breaking space between the last word and the hyperlink in the HTML version