Bug 244108 - kmail composer doesn't rearrange paragraph properly when inserting text
Summary: kmail composer doesn't rearrange paragraph properly when inserting text
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: composer (show other bugs)
Version: 1.13.5
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-10 09:19 UTC by Denis Prost
Modified: 2011-05-03 10:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screencast (807.66 KB, video/x-msvideo)
2011-05-02 17:05 UTC, Christophe Marin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Prost 2010-07-10 09:19:10 UTC
Version:           1.13.5 (using KDE 4.4.4) 
OS:                Linux

(this is with kde 4.4.5 which it is not proposed in the kde version list)
when inserting a word on first line of a paragraph, instead of properly rearranging lines, kmail composer generates one line with only one word on it. One has then to rearrange each paragraph line by hand.

Reproducible: Always

Steps to Reproduce:
1) open a new composer window
2) insert the following text
"Pour te dire en quelques mots ce que je retiens de la journée, Etienne, après 
le tour de table d'évaluation en fin de journée, puis un petit bilan avec 
Florent et Sophie :"
3) on first line of this paragraph, after the word "je", insert "foo"

Actual Results:  
composer générates a second line with only the word "après" on it

Expected Results:  
Should rearrange all paragraph to have lines with proper length.

OS: Linux (i686) release 2.6.33.2-pclos1.bfs
Compiler: gcc
Comment 1 Björn Ruberg 2010-08-07 18:13:57 UTC
Confirmed
Comment 2 Christophe Marin 2011-05-02 15:54:10 UTC
the text in the bug report contains a carriage return after "après", looks normal to have this word on a single line.

Counter test:
- in kwrite, paste "Pour te dire en quelques mots ce que je retiens de la journée, Etienne, après le tour de table d'évaluation en fin de journée, puis un petit bilan avec Florent et Sophie :"
- Remove the CR,
- paste into kmail's composer,
- insert foo after 'je'

Result, the second line becomes "après le tour de table d'évaluation en fin de journée, puis un petit bilan"
Comment 3 Denis Prost 2011-05-02 16:42:40 UTC
Hi Christophe,

thanks for taking care of that problem.
Maybe I was not clear explaining it : the problem is not when pasting the text into kmail  (indeed in this case everything works fine) but when typing it in kmail's editor : just try to type that text without inserting yourself carriage return (I did not insert any, this is kmail's editor that should have inserted automatically the one after the word "après", this is probably where the problem is), and then proceed as indicated in my first message and see what happens. 
Unless I missed some option that tells kmail not to insert carriage returns before automatically going to next line, to me, the bug should not be considered as resolved.

Regards,

Denis
Comment 4 Christophe Marin 2011-05-02 17:05:24 UTC
Created attachment 59544 [details]
screencast

Got it I think, and that's what I tested. I took the text in your bug report, pasted it in kwrite to remove the carriage returns (so, the paragraph was on a single line)

pasted it in the KMail composer and added a word on the first line.

See the attached screencast.
Comment 5 Denis Prost 2011-05-03 09:34:20 UTC
Hi Christophe,

I just tested it on KDE 4.6.2 and, indeed, now it works !
Thanks

Denis
Comment 6 Christophe Marin 2011-05-03 10:12:28 UTC
Thanks for the feedback.