Pasting text to other text editors have bad indentation

Describe the bug
When copying multiple paragraphs from anytype to other editors the indentation is not correctly copied. Points on the same level gets indented more than they should be (pasted text looks like a staircase). Either this or pasted text doesn’t get indeted at all (everything is at the same level). It looks like the latter case is happening with pages created with recent version of anytype while the former happens with pages created with earlier versions. Not the case. Happens randomly

To Reproduce
Create a page, write text like below:

image

Select all the blocks, copy it and paste it into other text editors (libre office, google sheets, gmail)

The pasted paragraphs are at the wrong level of indetation. Bullet points and headings get indented badly.

image

Expected behavior
The paragraphs should be indented as seen in anytype

System Information:

  • OS: Manjaro Linux
  • Anytype Version: 0.22.1
1 Like

@hungryseashell Thank you for your notice! It has been added to the bug tracker

Describe the bug
Copying-and-pasting either a Numbered list or a Bulleted list with multiple levels of indents will result in the indent levels being incorrect once being pasted into other text editors. I’ve confirmed that some text editors which exhibit this issue include Google Docs, TextEdit and Pages.

It appears if the indent levels can only go up (to the right), and never back down (to the left/outdent).

To Reproduce
Steps to reproduce the behavior:

  1. Open Anytype, and create either a new Bulleted list or a Numbered list.
  2. Create a few entries.
  3. Indent the entries, making sure to also outdent to reproduce the bug.
  4. Open another text editor, such as Google Docs.
  5. Copy the bulleted list from Anytype, and paste it into the other text editor. The list will only have indents, not outdents. (The list’s indentations will only go to the right, never to the left. Kind of hard to put this into words) :sweat_smile:

Expected behavior
I expected the indent levels once pasting to other document editors to be the same as what I’ve copied in Anytype. It is a small issue, but is one that adds onto the growing number of bugs related to copy-and-paste.

As I use Anytype for note-taking in an educational environment, I’m often required to upload my notes onto other platforms, namely Google Docs for submission. I frequently use bulleted notes with indents/outdents to organize information within a hierarchy, which is not preserved upon pasting to Google Docs, causing some inconvenience when time comes to submit and upload notes.

System Information:

  • OS: MacOS 12.1
  • Device Manufacturer/Model: MacBook Air M1 Late 2020
  • Anytype Version: 0.24.0

Additional context
Taking into account the growing amount of issues concerning copy-and-pasting into and from Anytype, I believe adding a tag for such copy-and-paste issues in the Discourse forum might help to improve organization.

I’ll also use this post to plug my other issue about images not being included when pasting from Google Docs into Anytype - it also causes some inconvenience for transferring content like worksheets, notes and other material into Anytype.

4 Likes

Mods, pls let me know: Should this be a separate bug report?

To add to this conversation, pasting from FF does not seem to intend and format correctly.

Works fine when copy-pasting webpages content from other browsers.

Pls check first and last para for reference.

Screen Shot 2022-05-22 at 7.39.54 PM

The firefox problem was also mentioned here

As the line breaks are coming from firefox it may be hard to differentiate the wanted from the unwanted ones.
I’m not sure how much the devs can do there. Maybe @Angelo could talk with the devs if there is something that could be done and if a seperate report makes sense.

sure, thanks.

Hopefully a FF update sorts this

Wouldn’t hope for it. One of the mentioned bugs is open for over 12 years.

Hi @hungryseashell, thanks for report! We will fix it