Bug 113047

Summary: Comment (Ctrl + D) with static word wrap turned on -> uncommended wrapped words
Product: [Applications] kate Reporter: Lukas Holzer <lukas.holzer>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version: 2.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Lukas Holzer 2005-09-22 10:08:21 UTC
Version:            (using KDE KDE 3.4.1)
Installed from:    SuSE RPMs
OS:                Linux

With static word warp turned on, the "Comment"-Function (Ctrl + D) will as usual include the comment sign "% " at the beginning
of each line. But on the other hand this causes a wrap of large lines. The wrapped words are then not commented as they should be.
Comment 1 Jeroen Wijnhout 2005-10-03 11:01:10 UTC
I think this is a general Kate issue ...
Comment 2 Christoph Cullmann 2005-10-03 11:07:15 UTC
And I won't change that, to fix it, is not trivial and language dependent
Comment 3 Jeroen Wijnhout 2005-10-03 11:15:59 UTC
I won't challenge the "non-trivial" part, but I do wonder why it would be language dependend. Suppose you have a multi-line comment: word wrap doesn't matter at all. Now in case of a single-line commenting style, you could insert the single-line commenting thingy at the beginning of the wrapped line.

best,
Jeroen
Comment 4 Caleb Kemere 2007-03-21 22:46:15 UTC
It seems like a simple fix is available:

while (a line is remaining in selection)
  insert comment string on first line
  wrap selection ("Join Lines")
  move to next uncommented line in selection
end