Bug 447094 - Text back end: Cannot copy when a line is broken at /
Summary: Text back end: Cannot copy when a line is broken at /
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: New backend wishes (show other bugs)
Version: 21.12.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-16 21:57 UTC by Christopher Yeleighton
Modified: 2022-04-02 15:28 UTC (History)
1 user (show)

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


Attachments
A desktop file with a long line broken at a hyphen (331 bytes, application/x-desktop)
2022-03-30 13:30 UTC, Christopher Yeleighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2021-12-16 21:57:54 UTC
SUMMARY
Text back end: Cannot copy when a line is broken at /

STEPS TO REPRODUCE
1. Open file Akonadi.error
2. Mark line 2021-12-16T22:30:03 
3. Paste

OBSERVED RESULT
2021-12-16T22:30:03 [CRITICAL] org.kde.pim.akonadiserver: arguments: ("--defaults-file=
home/dell/.local/share/akonadi/mysql.conf", "--datadir=/home/dell/.local/share/akonadi
db_data/", "--socket=/run/user/1000/akonadi/mysql.socket", "--pid-file=/run/user/1000
akonadi/mysql.pid")

EXPECTED RESULT
2021-12-16T22:30:03 [CRITICAL] org.kde.pim.akonadiserver: arguments: ("--defaults-file=/
home/dell/.local/share/akonadi/mysql.conf", "--datadir=/home/dell/.local/share/akonadi/
db_data/", "--socket=/run/user/1000/akonadi/mysql.socket", "--pid-file=/run/user/1000/
akonadi/mysql.pid")

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE Tumbleweed 20211213
(available in About System)
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2021-12-17 22:45:01 UTC
please attach such a file
Comment 2 Bug Janitor Service 2022-01-01 04:35:02 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-01-16 04:36:45 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 4 Christopher Yeleighton 2022-03-30 13:30:09 UTC
Created attachment 147845 [details]
A desktop file with a long line broken at a hyphen

Select the line Exec=/opt/google/chrome-beta/google-chrome-beta --profile-directory=Default --app-id=abnfpfhjmipcnaibcolbacfhgfcmjjbn
(the line is broken on a hyphen after --app-)
Paste
Exec=/opt/google/chrome-beta/google-chrome-beta --profile-directory=Default --app
id=abnfpfhjmipcnaibcolbacfhgfcmjjbn
The hyphen disappeared
Comment 5 Albert Astals Cid 2022-03-30 22:13:50 UTC
Ah, sure, that is on purpose.

On normal world, a hyphen in the middle of a word at the end of the line just means that the word is hyphenated and thus you don't want it when copy&pasting.

But I can see that this is not wanted in some weird cases like this one. Impossible to fix though.
Comment 6 Christopher Yeleighton 2022-04-02 15:28:49 UTC
(In reply to Albert Astals Cid from comment #5)
> Ah, sure, that is on purpose.
> 
> On normal world, a hyphen in the middle of a word at the end of the line
> just means that the word is hyphenated and thus you don't want it when
> copy&pasting.

WUT?  I never asked for tell-tale to become tell tale!?

Also, the same happens to / (like in a path, which commonly occurs in logs), and the path gets broken on copy.