Random line breaks added in the middle of word in quoted text in plain text composer when replying to HTML message
- evolution-3.30.5-1.fc29.x86_64
- evolution-data-server-3.30.5-1.fc29.x86_64
- webkit2gtk3-2.22.6-1.fc29.x86_64
Steps to reproduce:
- Disable "Edit > Preferences > Composer Preferences > General > Default Behavior > Format messages in HTML"
- Set "Edit > Preferences > Composer Preferences > General > Default Behavior > Number of characters for word wrapping" to "71"
- Enable "Edit > Preferences > Mail Preferences > Plain Text Mode > Show suppressed HTML parts as attachments"
- Set "Edit > Preferences > Mail Preferences > Plain Text Mode > HTML mode" to "Show HTML if present"
- Import testcase.
- Open testcase.
- See that the longest line ends with
xxxxxxxx 😜😜😜😜
- Hit Ctrl+R.
Expected outcome:
No sudden linebreaks in the middle of words, so the output should be:
> xxxx xxxxxx xx xxx xxxxxxxx🤦♀️🤦♀️🤦♀️. xxxx xx xxxxxxxxxxx xxxxxxxx
> 😜😜😜😜
Actual outcome:
Linebreak in the middle of the last word:
> xxxx xxxxxx xx xxx xxxxxxxx🤦♀️🤦♀️🤦♀️. xxxx xx xxxxxxxxxxx xxxxx
> xxx 😜😜😜😜
Bonus level:
Change xxxxxxxxx 😜😜😜😜
to AAAAAAAA 😜😜😜😜
and get a completely different word receive a wrong linebreak:
> xxxx xxxxxx xx xxx xxxxxxxx🤦♀️🤦♀️🤦♀️. xxxx xx xxxxxxxx
> xxx AAAAAAAAA 😜😜😜😜
Test case:
Edited by Andre Klapper