"Comment tool" does not work properly if static word wrap is on
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kile |
Invalid
|
Medium
|
|||
kile (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Ubuntu 8.04, kile 2.0.0, package 1:2.0-1
If static word wrap is enabled (Settings-
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.
Changed in kile: | |
status: | Unknown → New |
Changed in kile: | |
importance: | Undecided → Low |
Changed in kile: | |
status: | New → Invalid |
Changed in kile: | |
status: | Invalid → Unknown |
Changed in kile: | |
status: | Unknown → Confirmed |
Changed in kile (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in kile: | |
importance: | Unknown → Medium |
Changed in kile: | |
status: | Confirmed → Invalid |
Version: 2.4 (using KDE KDE 3.4.0)
Installed from: Gentoo Packages
Compiler: gcc 3.4.3
OS: Linux
I use CTRL-D a lot to comment blocks of Perl code. It simply places "# " (a pound sign and a space) at the head of each highlighted line.
When I have static word wrap turned on, any lines that are within two characters of hitting the wrap limit have their last word moved to a new line (they're pushed by the two new characters). That's all fine and dandy, but the problem is that the new line _is not commented_. Which means the code doesn't compile and I have to go searching for the problem.