Bug 185110

Summary: Comment tool does not work properly if static word wrap is on
Product: [Applications] kate Reporter: Andreas Wenning Rangholm <awen>
Component: partAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED DUPLICATE    
Severity: normal CC: thomas.braun
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andreas Wenning Rangholm 2009-02-21 11:40:51 UTC
Version:           2.0.0 and kde4 svn from 20090217 (using KDE 4.2.0)
OS:                Linux
Installed from:    Ubuntu Packages

If static word wrap is enabled (Settings->Configure Kile->Editor->Editing->Enable static word wrap) and a longer paragraph is selected (several lines, each line close in length to the maximal length as defined by the static word wrap) then Ctrl-D ("Comment") tool does not really comment the paragraph in the right way.
Example: set "wrap words at: 80", then attempt to comment the paragraph:
a a a aaaa aaaa aaaaaaa aaaa aaaa aaaa aaaaaaa aaaa aaaa aaaa aaaaaaa aaaa aaaa
 a a a aaaa aaaaaaa aaaa aaaa aaaa aaaaaaa aaaa aaaa aaaa aaaaaaa aaaa aaaa aaaa
 aaaaaaa aaaa aaaa aaaa aaaaaaa aaaa
results with:
% a a a aaaa aaaa aaaaaaa aaaa aaaa aaaa aaaaaaa aaaa aaaa aaaa aaaaaaa aaaa
 aaaa
 % a a a aaaa aaaaaaa aaaa aaaa aaaa aaaaaaa aaaa aaaa aaaa aaaaaaa aaaa aaaa
 aaaa
 % aaaaaaa aaaa aaaa aaaa aaaaaaa aaaa
in other words, there are two lines which consist of "aaaa" and are not commented.

See also:
https://bugs.launchpad.net/ubuntu/+source/kile/+bug/247798
Comment 1 Dominik Haumann 2009-06-05 00:10:28 UTC
Very old and valid bug, unfortunately. Mark as duplicate.

*** This bug has been marked as a duplicate of bug 105373 ***