Bug 418957

Summary: Automatic line breaks turn into hardcoded ones when saved as draft (plain text emails)
Product: [Applications] kmail2 Reporter: kde
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: david.narvaez, montel
Priority: NOR    
Version: 5.13.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description kde 2020-03-17 12:04:36 UTC
SUMMARY


STEPS TO REPRODUCE
1. Create a new message.
2. Enter text that is long enough to span several lines (at least 2) so it is wrapped automatically.
3. Remove a sufficient amount of text from the beginning of the first line. Text from the following lines will be moved to the first line again. This is expected.
4. Again, enter text that is long enough to span several lines (at least 2) so it is wrapped automatically.
5. Save as draft and close message.
6. Reopen message from draft.
7. Remove text from the beginning of the first line.

OBSERVED RESULT
Words from following lines are not moved at all. The text is treated as if actual hard-coded line breaks had been added between the lines which were actually wrapped automatically.

EXPECTED RESULT
Text should behave as before saving as draft, meaning continuous text should be treated as such and not as a sequence of individual lines, separated by explicit line breaks.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
Comment 1 kde 2020-03-17 12:10:34 UTC
I forgot to mention: I'm talking about plain text emails. I haven't tested richtext input.
Comment 2 Laurent Montel 2020-03-17 12:42:52 UTC
I confirm it.
I will look at it.