keepassxc icon indicating copy to clipboard operation
keepassxc copied to clipboard

Newlines missing when copy + pasting notes text

Open davidak opened this issue 3 years ago • 1 comments

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 https://github.com/keepassxreboot/keepassxc/issues/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 avatar Sep 13 '22 22:09 davidak

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 :stuck_out_tongue:

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 avatar Sep 20 '22 14:09 fluks

Can't replicate this on develop branch.

fluks avatar Sep 26 '22 22:09 fluks

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

image

droidmonkey avatar Sep 30 '22 12:09 droidmonkey

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

fluks avatar Sep 30 '22 14:09 fluks

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.

jolyfra avatar Oct 03 '22 10:10 jolyfra