This happens a lot in Gentoo ebuilds so I noticed when I was working with them. Quite nasty when you think of how this could sneak bogus quotation marks into your code. Reproducible: Always Steps to Reproduce: 1. Enable AutoBrace extension 2. [X] (Check) Automatically add closing quotation marks in its extension settings 3. Copy the following content (_between_ the dash lines) and insert into kwrite/kate (empty file, existing file, anything): ------- a"b " c ------- Actual Results: This is what you get: ------- a"b " c" ------- Actually, the absolute minimum test case is the following: ------- a" " ------- Notice the remaining >a< - for this to reproduce, there must be at least one other character in the same line with a quote, no matter if in- or outside. That means the error happens also when removing all letters but >b<, however not if you remove all except >c<.
The same applies to apostrophes.
[I am a GCI student] I was not able to reproduce this for kate 3.14.2 on Ubuntu 14.10. It happened once (not in the beginning of testing). This behaviour might need further conditions to reproduce.
Sorry, my version actually is 3.14.3, it just wasn't available for the report. I was able to reproduce this bug on 3 out of 3 Gentoo systems, all running KDE SC 4.14.3, on the last one I made sure that I started with a clean sheet and deleted any existing configs of kate/kwrite. Make sure that 'closing quotation marks' is _actually_ enabled in your texteditor component. Immediately after enabling the extension, when you enter the settings, it appears to be checked by default, though it isn't. Re-opening the settings dialog is required to really enable the option.
I actually did check for the 'closing quotation mark' multiple times. I'll make another bug report about the problem in the settings.
Created attachment 90223 [details] kwriterc Default kwriterc with all extensions but autobrace disabled - bug reproducable.
It is very nice that you post your configuration. I still can't reproduce it. Perhaps it is something about the newer kate version or to a less degree probable gentoo. Somebody else should try to look at it.
Reproducible with Kate 4.14.2-2 on Debian sid (amd64).
Works in KF5 version of Kate/KWrite
And this bug was reported for KF5. But I just checked, and I was not able to reproduce it with kate-18.08.0/kf-5.49.