Bug 247965 - Replace all can't work when the found text is \n\n
Summary: Replace all can't work when the found text is \n\n
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: search (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Bernhard Beschow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-15 17:23 UTC by jfvelez
Modified: 2010-09-19 02:55 UTC (History)
1 user (show)

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 jfvelez 2010-08-15 17:23:37 UTC
Version:           3.5 (using KDE 4.5.0) 
OS:                Linux

Frequently, I need to erase empty lines in a text document. In order to do that I search for \n\n and replace all by nothing. Kate accept \n when you mark the mode "escape sequences". 

Now, this functionality is impossible. The problem is due an automatism included in an earlier version. Kate mark "selection only" option automatically when several paragraphs are selected. And several paragraphs are selected when the first string is found. So, kate can't replace in all document, because only find the first selection.

Reproducible: Didn't try

Steps to Reproduce:
Write all this text in kate, maintaining the empty lines.

Find \n\n and replace by nothing using mode "escape sequences".

You will find that the first empty line are deleted.

Now, pulse next buttom. You will notice that nothing is selected because "selection only" option has been automatically marked.

If you try "replace all" occurs random actions over the text.

Actual Results:  
Only the first empty line is deleted or occur random actions.

Expected Results:  
The empty lines are deleted.
Comment 1 Pascal Létourneau 2010-09-19 02:53:58 UTC
SVN commit 1176897 by pletourn:

Revert r1099555

BUG:247965


 M  +2 -0      katesearchbar.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1176897
Comment 2 Pascal Létourneau 2010-09-19 02:55:25 UTC
SVN commit 1176898 by pletourn:

Revert r1099555

CCBUG:247965


 M  +2 -0      katesearchbar.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1176898