Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newlines missing when copy + pasting notes text #8469

Closed
davidak opened this issue Sep 13, 2022 · 5 comments · Fixed by #8542
Closed

Newlines missing when copy + pasting notes text #8469

davidak opened this issue Sep 13, 2022 · 5 comments · Fixed by #8542
Assignees
Milestone

Comments

@davidak
Copy link

davidak commented Sep 13, 2022

Overview

When i copy and paste text from notes, the newlines are gone.

Copy:

Screenshot from 2022-09-14 00-34-15

Paste here:

This
is
a
test
entry

Interesting is that you can still select a single word by double click on it.

Steps to Reproduce

  1. Create a note that includes newlines
  2. Copy note text with CTRL + C
  3. Paste Text anywhere

Expected Behavior

Newlines should be copied. That actually works when you select the text and rightclick + "Copy".

Actual Behavior

Newlines missing.

Context

Might be related to #7243.

I think i don't had the issue in 2017.

KeePassXC - 2.7.1
Revision: REVISION

Operating System: NixOS 22.05.2711.294ef54a1e8 (GNU/Linux)
Desktop Env: Pantheon
Windowing System: X11

@davidak davidak added the bug label Sep 13, 2022
@davidak davidak changed the title Newlines missing when copy + paste Newlines missing when copy + pasting notes text Sep 13, 2022
@fluks
Copy link

fluks commented Sep 20, 2022

I could try to work on this part of the upcoming Hacktoberfest, so if I'm able to fix it, I will send a PR only in October 😛

I wasn't able to replicate on 2.6.6 which is in Ubuntu's packages, so it seems to be a later regression. I'll try to replicate in master.

@fluks
Copy link

fluks commented Sep 26, 2022

Can't replicate this on develop branch.

@droidmonkey
Copy link
Member

I can replicate it. Notepad properly handles the line separators but not more advanced IDE's:

image

@droidmonkey droidmonkey self-assigned this Sep 30, 2022
@droidmonkey droidmonkey added this to the v2.8.0 milestone Sep 30, 2022
@fluks
Copy link

fluks commented Sep 30, 2022

That's weird. I have normal "\n" or 0x0a newlines.

@jolyfra
Copy link

jolyfra commented Oct 3, 2022

Verified on my Win10 with Version 2.7.1 Revision: 5916a8f, but not on previous version.

download

This problem arrived with 2.7.x and the clipboard clearing countdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants