Bug 448936 - "Replace all" replaces only one instance when newline character in replacement string
Summary: "Replace all" replaces only one instance when newline character in replacemen...
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: search (other bugs)
Version First Reported In: 21.12.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-22 04:36 UTC by leonhardeuler1707
Modified: 2022-01-31 19:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Kate newline replace all works (87.07 KB, image/gif)
2022-01-30 09:32 UTC, Jan Paul Batrina
Details

Note You need to log in before you can comment on or make changes to this bug.
Description leonhardeuler1707 2022-01-22 04:36:43 UTC
SUMMARY
***
"Replace all" replaces only one instance when newline character in replacement string.
***


STEPS TO REPRODUCE
1. Create a text file with the content "Each, word, is, a, line"
2. Press Ctrl+R for search and replace
3. Set mode to "Escape sequences"
4. Find comma and replace with \n
5. Click "Replace All"

OBSERVED RESULT
Each
 word, is, a, line

EXPECTED RESULT
Each
 word
 is
 a
 line

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Comment 1 Jan Paul Batrina 2022-01-30 09:32:12 UTC
Created attachment 146067 [details]
Kate newline replace all works

Thank you for the bug report!

"Replace all" with newline works properly here, both with version 21.12.0 and the latest dev version (see attached GIF)
Comment 2 Mykola Krachkovsky 2022-01-31 14:59:27 UTC
I think this bug should be solved with Commit 863f606b, see bug https://bugs.kde.org/show_bug.cgi?id=447972.
Comment 3 leonhardeuler1707 2022-01-31 19:58:58 UTC
Thanks for the follow-up. I confirm that Kate 22.03.70 works as expected.