Bug 486305

Summary: Plasmoid license viewer renders static line breaks, making the text difficult to read
Product: [Plasma] plasmashell Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: minor CC: alexander.lohnau, christoph, cwo.kde, kde, nate
Priority: NOR Keywords: usability
Version: master   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=486308
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Depiction of the problem.
Depiction of the problem.

Description Roke Julian Lockhart Beedell 2024-04-29 15:52:14 UTC
SUMMARY
The Plasmoid license viewer renders static line breaks, when it shouldn't.

STEPS TO REPRODUCE
1.  Open any plasmoid with an About page (which contains a license) like Application Launcher and Kate Sessions.
2.  Invoke the link to the fake dialog overlay which displays the license.

OBSERVED RESULT
It renders the line breaks, making the license damn near unreadable.

EXPECTED RESULT
It should render them like CommonMark-compliant Markdown processors do - ignore line breaks of lines directly next to another, meaning that the license remains unchanged on disk (legally important) yet is rendered in an accessible manner.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.8-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Manufacturer: ASRock
Product Name: X670E Taichi

ADDITIONAL INFORMATION
I've set this as minor solely because locating a copy of the GPL online is easy. However, were a plasmoid to utilize another (especially custom) license, this would be problematic.
Comment 1 Roke Julian Lockhart Beedell 2024-04-29 15:52:23 UTC
Created attachment 169003 [details]
Depiction of the problem.
Comment 2 Roke Julian Lockhart Beedell 2024-04-29 15:53:13 UTC
Created attachment 169004 [details]
Depiction of the problem.
Comment 3 cwo 2024-09-18 11:20:31 UTC
*** Bug 486308 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2024-09-20 01:48:05 UTC
Can confirm, but I'm unsure how to craft the appropriate text transformation to fix this. The code is in plasma-desktop:desktoppackage/contents/configuration/AboutPlugin.qml, line 80