Bug 422968

Summary: Copying system information to the clipboard contains trailing spaces and an unnecessary line break
Product: [Applications] kinfocenter Reporter: Claudius Ellsel <claudius.ellsel>
Component: About this SystemAssignee: Claudius Ellsel <claudius.ellsel>
Status: RESOLVED FIXED    
Severity: normal CC: nate, sitter
Priority: NOR    
Version: 5.19.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 5.19.1
Sentry Crash Report:

Description Claudius Ellsel 2020-06-14 12:50:12 UTC
SUMMARY
When copying the system information to the clipboard it contains some unwanted characters.

STEPS TO REPRODUCE
1. Open System Information
2. Use the button to copy it to the clipboard
3. Paste it somewhere

OBSERVED RESULT
There are some unwanted spaces and a newline at the end. Example:

German:
"Betriebssystem: Manjaro Linux 
KDE-Plasma-Version: 5.19.0
KDE-Frameworks-Version: 5.70.0
Qt-Version: 5.15.0
Kernel-Version: 5.6.17-1-MANJARO
Art des Betriebssystems: 64-bit
Prozessoren: 4 × Intel® Xeon® CPU E3-1225 v3 @ 3.20GHz
Speicher: 3,8 GiB Arbeitsspeicher
Grafikprozessor: Mesa DRI Intel® HD Graphics P4600/P4700 
"

English:
"Operating System: Manjaro Linux 
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.6.17-1-MANJARO
OS Type: 64-bit
Processors: 4 × Intel® Xeon® CPU E3-1225 v3 @ 3.20GHz
Memory: 3,8 GiB Arbeitsspeicher
Graphics Processor: Mesa DRI Intel® HD Graphics P4600/P4700 
"

EXPECTED RESULT
English:
"Operating System: Manjaro Linux
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.6.17-1-MANJARO
OS Type: 64-bit
Processors: 4 × Intel® Xeon® CPU E3-1225 v3 @ 3.20GHz
Memory: 3,8 GiB Arbeitsspeicher
Graphics Processor: Mesa DRI Intel® HD Graphics P4600/P4700"
Comment 1 Claudius Ellsel 2020-06-15 17:15:56 UTC
I just created a merge request for this: https://invent.kde.org/plasma/kinfocenter/-/merge_requests/5
Comment 2 Claudius Ellsel 2020-06-16 07:19:39 UTC
Git commit d3151145b84330c5e16856138bc04ca5e674ebf1 by Claudius Ellsel.
Committed on 16/06/2020 at 07:18.
Pushed by sitter into branch 'Plasma/5.19'.

Address trailing newline and spaces
FIXED-IN: 5.19.1

M  +3    -0    Modules/about-distro/src/GPUEntry.cpp
M  +5    -3    Modules/about-distro/src/Module.cpp

https://invent.kde.org/plasma/kinfocenter/commit/d3151145b84330c5e16856138bc04ca5e674ebf1