cryptee / web-client

Cryptee's web client source code for all platforms.
https://crypt.ee
Other
444 stars 22 forks source link

[Bug] extra new line after each line if pasted into an external program #87

Open BasilTomato opened 3 years ago

BasilTomato commented 3 years ago

Describe the bug If I try to paste the content copied from a Cryptee document into an external program there is an unnecessary extra new line after each line pasted. This is quite annoying and have to be fixed each and every time. The problem is observed in following situations:

To Reproduce Steps to reproduce the behavior in Windows:

  1. copy any multi-paragraph text from a Cryptee document
  2. paste the content into a file opened with Notepad++ (and possible any other app)

Expected behavior No extra new line after wach line pasted.

Screenshots n/a

System Information (please complete the following information):

Additional context n/a

johnozbay commented 3 years ago

Hi there! Today we released Cryptee v3.0, and it's a completely rewritten, entirely new app. We fixed a ton of bugs in copy / pasting, and added a bunch of new features like detecting insecure urls / image trackers while pasting. ( 01edfe4 ) You can read more about this update here :

https://blog.crypt.ee/say-hello-to-a-new-cryptee

Give it a try and let me know if this update fixes the bug!

Thanks for this! ✌🏻

BasilTomato commented 3 years ago

Hello, thanks for the update!

I have tested in 3.0, and this problem still exist.

jebbster88 commented 3 years ago

I assume that's down to Cryptee treating each line as the start of a new paragraph. Try pasting the text below into notepad and I'd wager you get the same result, it'd be the same case copying paragraphs from any website.. I'm not surprised it behaves this way, and to be honest appreciate it. I think where Cryptee possibly falls down is the inability to use Shift-Return to insert a soft line break (as per the last part of my example below), but that's not Cryptee's fault (https://github.com/quilljs/quill/issues/252)

Example

This is a paragraph

This is another paragraph

This is all one paragraph
with a line break

Example source

<p>This is a paragraph</p>
<p>This is another paragraph</p>
<p>This is all one paragraph<br />with a line break (soft break)</p>