Newlines missing when copy + pasting notes text
Overview
When i copy and paste text from notes, the newlines are gone.
Copy:

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
- Create a note that includes newlines
- Copy note text with CTRL + C
- 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
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.
Can't replicate this on develop branch.
I can replicate it. Notepad properly handles the line separators but not more advanced IDE's:

That's weird. I have normal "\n" or 0x0a newlines.
Verified on my Win10 with Version 2.7.1 Revision: 5916a8f, but not on previous version.

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