Bug 113047 - Comment (Ctrl + D) with static word wrap turned on -> uncommended wrapped words
Summary: Comment (Ctrl + D) with static word wrap turned on -> uncommended wrapped words
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: 2.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 10:08 UTC by Lukas Holzer
Modified: 2007-03-21 22:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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