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

Cutting & Pasting is broken when block contains ID key #8924

Closed
1 of 2 tasks
Zyrohex opened this issue Mar 28, 2023 · 3 comments · Fixed by #8932
Closed
1 of 2 tasks

Cutting & Pasting is broken when block contains ID key #8924

Zyrohex opened this issue Mar 28, 2023 · 3 comments · Fixed by #8932
Labels
can-be-reproduced editor:copy-paste Clipboard data attached is appreciated. See menu - bug report - clipboard inspector

Comments

@Zyrohex
Copy link

Zyrohex commented Mar 28, 2023

Search first

  • I searched and no similar issues were found

What Happened?

0.9.0 broke cutting & pasting. Format is all messed up.

Reproduce the Bug

  1. Cut & paste text into a new page

Expected Behavior

Should be pasting while keeping the format

Screenshots

What I copied:
image

Output:
image

Desktop or Mobile Platform Information

Logseq 0.9.0

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)
@Zyrohex
Copy link
Author

Zyrohex commented Mar 28, 2023

Works fine in 0.8.17

Also fails when I swap the block contents to the below:

- [[Logseq]]
	- Simple test
		- Some notes

@logseq-cldwalker logseq-cldwalker added editor:copy-paste Clipboard data attached is appreciated. See menu - bug report - clipboard inspector need-to-reproduce More clues are required to reproduce the issue. labels Mar 28, 2023
@logseq-cldwalker
Copy link
Collaborator

Hi. I can't reproduce with the info given. Are you pasting with or without formatting? Could you provide the text that you were pasting? What platform are you on?

@Zyrohex
Copy link
Author

Zyrohex commented Mar 28, 2023

@logseq-cldwalker - Windows 11. I've narrowed it down further. At least one of the blocks must contain the id:: key used for block references. I can reproduce this fairly easily now by creating a nested list, then copying the blocks ref ID from the last child. Here's the raw text from my file:

- [[Logseq]]
	- Test node
	  id:: 6422e5bc-a84e-4f9c-a63c-495adf8dd923
		- Notes

Regarding formatting: I have tried both ways and they both produce bad results.

@Zyrohex Zyrohex changed the title Cutting & Pasting is broken Cutting & Pasting is broken when block contains ID key Mar 28, 2023
@logseq-cldwalker logseq-cldwalker added can-be-reproduced and removed need-to-reproduce More clues are required to reproduce the issue. labels Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can-be-reproduced editor:copy-paste Clipboard data attached is appreciated. See menu - bug report - clipboard inspector
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants