Bug 482679 - Clipboard "Remove white space" not working
Summary: Clipboard "Remove white space" not working
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (show other bugs)
Version: 5.27.8
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-07 09:59 UTC by Halmut Holz
Modified: 2024-08-29 03:47 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Halmut Holz 2024-03-07 09:59:31 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. enable "Remove white space" in the clipboard settings menu
2. copy a text beginning and/or ending with a white space, newline or tab.
2. paste into a text editor


OBSERVED RESULT
The text is pasted with white spaces

EXPECTED RESULT
The text should hat

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 23.10
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.0-25-generic (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
This used to work some weeks ago.
Comment 1 Nicolas Fella 2024-03-22 20:57:57 UTC
I don't think this option is supposed to do what you expect it to. The description says

> Remove any whitespace from the start and end of selected text, before performing an action. For example, this ensures that a URL pasted in a browser is interpreted as expected. The text saved on the clipboard is not affected.
Comment 2 TraceyC 2024-07-30 20:59:45 UTC
I'm not seeing a problem opening URLs that were copied to the clipboard with spaces before and/or after the URL
I do see spaces in the clipboard when I copy text with leading or trailing spaces
This is consistent with what I'd expect, based on the text in the settings description Nicolas pasted

Are you seeing this cause issues in your applications?
I do notice that when I paste text in Kate, it removes trailing spaces by default when the file is saved (Settings - Open/Save - General - Automatic Cleanups on Save)
If I turn this off (and in other editors that don't cleanup white spaces), text is pasted from the clipboard as-is

What application are you pasting text into? It might be that the behavior of that has changed.


Tested on Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Comment 3 Bug Janitor Service 2024-08-14 03:46:50 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2024-08-29 03:47:57 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.