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
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)
I think this bug should be solved with Commit 863f606b, see bug https://bugs.kde.org/show_bug.cgi?id=447972.
Thanks for the follow-up. I confirm that Kate 22.03.70 works as expected.