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
Very old and valid bug, unfortunately. Mark as duplicate. *** This bug has been marked as a duplicate of bug 105373 ***