anytype-heart icon indicating copy to clipboard operation
anytype-heart copied to clipboard

Paste the content to Code Snippet there will be extra blank lines

Open Xonline-Tech opened this issue 2 years ago • 0 comments

Have you read a contributing guide?

  • [X] I have read CONTRIBUTING.md
  • [X] I have searched the existing issues and didn't find any that were similar
  • [X] I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

  1. Create an empty page and insert the Code Snippet
  2. Create a new notepad, or use other software to enter some multi-line text
  3. Copy the text content and paste it into the Code Snippet.
  4. The problem of extra blank lines
  5. Paste multiple lines of text into the Anytype Text Block without blank lines.
  6. When the contents of the Anytype text Block are copied and pasted into the Code Snippet, there will be no blank lines (as expected)
select *
from table_a
where a = '1';

https://github.com/anyproto/anytype-ts/assets/55641276/75e49384-eca2-45f5-b553-fc14834a2edc

Expected Behavior

The problem of extra blank lines

Steps To Reproduce

1

Environment

- OS:Windows11
- Version: 0.35.21-beta

Anything else?

No response

Xonline-Tech avatar Nov 14 '23 04:11 Xonline-Tech