Bug 238629

Summary: Wordwrap does not work properly
Product: [Applications] kmail2 Reporter: Sabine Faure <sabine>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: adrian
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The lines are received on three lines exactely as they were typed on the composer whereas there are less than 80 characters on each lines.

Description Sabine Faure 2010-05-24 00:27:45 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Wordwrap functionality allow the user to type more than 80 characters per line.
However, sending an email not using the wordwrap functionality allows the user to type longuer lines (ex: sending a log or a patch)
But it is impossible to extend the sent text further than it already is.

Reproducible: Always

Steps to Reproduce:
- Launch Kmail
- Click on 'New'
- Go to Options menu/Wordwrap (uncheck it)
- Reduce the size of the 'Composer' dialogue by half
- Fill in the recipient (yourself), the subject and enter two lines of text without pressing enter (the text goes automatically to the next line)
- Click on 'Send'
- Open the email
- Reenlarge the window to its normal width

Actual Results:  
The text is still displayed on only to lines whereas there is blank at the end of both lines.

Expected Results:  
The text should be moved to one full line and maybe at the beginning of the second depending on the screen's size.

Trunk, Svn Rev 1129830

The opposite works fine: 
If the text is sent with a large window width then reducing its size works (they are more lines displayed).

So it would make sense if enlarging the lines worked too.
Comment 1 Thomas McGuire 2010-05-24 21:18:47 UTC
Sounds like you are describing bug 219572, I'll mark it as a duplicate.
If it is not the same, please re-open or leave a comment.

*** This bug has been marked as a duplicate of bug 219572 ***
Comment 2 Sabine Faure 2010-07-23 20:37:40 UTC
I retested this and I still get the same bug so I am reopening this bug since it seems not to be a duplicate after all.

Trunk, Svn Rev 1153490
Comment 3 Leo Franchi 2010-07-26 22:24:17 UTC
SVN commit 1155011 by lfranchi:

Use proper check for whether or not to linewrap. 

BUG: 219572
BUG: 238629


 M  +1 -1      textedit.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1155011
Comment 4 Sabine Faure 2010-07-30 01:31:30 UTC
Created attachment 49659 [details]
The lines are received on three lines exactely as they were typed on the composer whereas there are less than 80 characters on each lines.

Trunk, Svn Rev 1156856
Comment 5 Adrián Chaves (Gallaecio) 2012-09-18 06:36:16 UTC
I could not reproduce the error following the last set of steps provided, using KMail 4.9.1. Can anyone else confirm this is now working?

When writting the email, lines are not wrapped at all — Not even visually. And once I get back the email, only the line breaks I introduced manually are there.
Comment 6 Myriam Schweingruber 2012-09-18 13:06:58 UTC
Closing for now, please feel free to reopen if you can reproduce this with KDE 4.9.1 or later.