Created attachment 124402 [details] Screenshot 1 SUMMARY In my workflow I use compilation flags saved in a GMail mail and copy them into Makefiles which I open with Kate. A copy out of Chromium/Firefox and paste into Kate with formatted text results in an added symbol around the once formatted text which confuses the compiler and should not be there. This bug was introduced around late summer/early fall this year - it used to work as expected before. STEPS TO REPRODUCE Copy a text with different formatting from Firefox or Chromium into Kate (see Screenshot 2) OBSERVED RESULT There is a trailing symbol at once formatted text (see Screenshot 1). EXPECTED RESULT There should be no such added symbol in Kate. SOFTWARE/OS VERSIONS openSUSE Tumbleweed from 4th December 2019 Linux/KDE Plasma: KDE Plasma Version: 5.17.3 KDE Frameworks Version: 5.64.0 Qt Version: 5.13.1
Created attachment 124403 [details] Screenshot 2 Gmail source document
Further testing revealed that this might not be a KDE specific issue as I recently tested Clear Linux which uses GNOME and observed similar erratic behaviour while pasting the same snippet into their text editor - even worse, there are no visible indicators (such as the added symbol in KATE) that anything is wrong, but it simply errors out during compilation.
Marcus can you confirm if this is still an issue. Without the original email with symbols in it, it would be hard to test and diagnose this issue.
Just for reference, I've sent two mails with examples to Justin privately to replicate the issue. It was still reproducible for me with a recent 5.9.3 kernel on Manajaro 20.2 pre-testing3.
(In reply to Marcus Seyfarth from comment #4) > Just for reference, I've sent two mails with examples to Justin privately to > replicate the issue. It was still reproducible for me with a recent 5.9.3 > kernel on Manajaro 20.2 pre-testing3. I got these thanks Marcus. Aiming to have a look into this soon.
Tested this in Kate and I cannot replicate the issue, have emailed Marcus for further information.
I've just send you two e-Mails detailing the issue further. I've made a discovery though, if I copy & paste the text from a send E-Mail it won't reproduce. I can only reproduce it when the text is copy & pasted from a draft mail. That makes it harder to get you to reproduce the issue though. :(
Hm, I've tried to reproduce the problem with new snippets from stackoverflow, where I copy the formatted compiler options first into a Gmail draft and then from Gmail into Kate. But I cannot reproduce the issue anymore. Also directly copying the snippet from stackoverflow to Kate won't reproduce it. Maybe my old draft document inherited the issue and preserved it for as long as I used it. If you can't reproduce it either, I'll close the issue.
Okay, one last try: Step 1: Open the following page: https://stackoverflow.com/questions/28875325/gcc-optimization-flag-o3-makes-code-slower-than-o2 Step 2: Copy all the paragraphs from the comments below the top post, beginning with: "Did you run each program once?" Step 3: Paste these in a GMail draft mail. Step 4: Copy the text from the draft mail and open KATE Step 5: Paste the text into KATE --> I get these trailing _ again. I won't get them if I directly copy & paste all these comments from the Website into Kate.
Created attachment 133295 [details] Chrome 86.0.4240.193 Chrome version used: 86.0.4240.193
Created attachment 133296 [details] Firefox 82.0.3 Firefox 82.0.3
My analysis: Firefox shows the issue to a far lesser extent than Chromium (just look at the trails around "halex" in each screenshot), but both browsers reproduce the issue when using a Gmail draft mail as an intermediate step.
Good news, a recent update fixed the issue for me. I cannot tell where exactly in the stack the issue got fixed, but I am happy that it is gone now.