Bug 180612

Summary: Single empty line is replaced by three empty lines upon saving as draft and reopening
Product: [Applications] kmail Reporter: Nicolas Dietrich <nidi>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: jtamate
Priority: NOR    
Version: 1.11.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Nicolas Dietrich 2009-01-14 02:33:09 UTC
Version:           1.11.0 (using 4.1.96 (KDE 4.1.96 (KDE 4.2 RC1)), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.27-1-686

Saving a message as a draft and reopening it again results in every empty line being replaced by three empty lines.

Somehow this occurs not on every save-and-reopen operation, but on most. Couldn't find a pattern.

Kmail is looking great these days - thanks!!
Comment 1 Jaime Torres 2009-01-27 11:49:37 UTC
Confirmed in svn trunk r909527, only with the HTML mail format.
Comment 2 Thomas McGuire 2009-08-18 20:51:35 UTC
SVN commit 1013072 by tmcguire:

Remove the hack that fixed some bugs in Qt, since those bugs are now fixed, and
now this hack introduces its own bugs...

Add unit test to verify that it works.

BUG: 180612


 M  +1 -0      tests/CMakeLists.txt  
 A             tests/krichtextedittest.cpp   [License: LGPL (v2/3+eV)]
 A             tests/krichtextedittest.h   [License: LGPL (v2/3+eV)]
 M  +3 -47     widgets/krichtextedit.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1013072
Comment 3 Thomas McGuire 2009-08-19 17:22:01 UTC
SVN commit 1013326 by tmcguire:

Backport r1013072 by tmcguire from trunk to the 4.3 branch:

Remove the hack that fixed some bugs in Qt, since those bugs are now fixed, and
now this hack introduces its own bugs...

Add unit test to verify that it works.

CCBUG: 180612



 M  +1 -0      tests/CMakeLists.txt  
 A             tests/krichtextedittest.cpp   trunk/KDE/kdelibs/kdeui/tests/krichtextedittest.cpp#1013072 [License: LGPL (v2/3+eV)]
 A             tests/krichtextedittest.h   trunk/KDE/kdelibs/kdeui/tests/krichtextedittest.h#1013072 [License: LGPL (v2/3+eV)]
 M  +3 -47     widgets/krichtextedit.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1013326