The Paragraph are not in the position they are supposed to be.Paragraph are not pasted correctly in their order. Although the Format option like headings and bold and italic option are working fine.
They
go like this for an example. instead of this line
being continuous with the above line.
To Reproduce
Steps to reproduce the behavior:
Copy content from a webpage
paste it in Anytype
See an error. The Paragraph are not in the position they are supposed to be.
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
Still can’t reproduce, even with the same website. So I suspect it may be an OS issue, or if you have some Clipboard utility/setting that is involved perhaps. @Srinath are all these tests on Linux? (your screenshot looks Mac-like, but I think that’s just a theme, eh?).
I’m only being so particular about all this because the devs will usually need to know exactly how to reproduce it for them to figure out why it happens and solve it. If you can provide more detail/specifics about what you’re doing to replicate it (what source page, the exact text contents you’re copying, whether you’re using any clipboard tools, etc.), that would be great.
I did not have any special clipboard tools. To reproduce the issue, all i’ve got to do is copy few paragraphs from the page and paste it in an Anytype page. I tried pasting it in a different text editor that comes with the distro and it was fine.
Curiously, this error seems to happen when pasting into block-based editors - Notion is also affected. Non-block based editors, such as Pages and TextEdit perfectly preserve the line breaks.
Pasting back from a non-block based editor into a block-based one (both Anytype and Notion) also successfully preserves the line breaks.
The top section is copied directly from the aforementioned webpage, while the bottom one was first pasted into Apple Pages, then copied back to Anytype.
Notion also has problems with line breaks. However, pasting without formatting works to preserve normal line break text, although this isn’t ideal.
This appears to not be the only clipboard related issue that is present within the Object Canvas; I’ve also experienced issues copying and pasting images, described in my bug report here.
Just realized - It seems as if the issue, on Mac OS, will only happen when copying from a webpage in Firefox, not in other browsers, such as Chrome or Safari.
Using the Apple-provided tool Clipboard Viewer, the raw HTML (public.html and Apple HTML pasteboard type) can be seen that is in the clipboard.
When copying from Firefox, the clipboard data contains Unicode line breaks, as can be seen with this tool.
The line breaks exactly line up with where Anytype (and Notion) inserted them.
However, with Safari and Chrome, the raw HTML output doesn’t contain any line breaks, and the pasted text in Anytype also doesn’t contain any at the specified locations.
Copying from other browsers doesn’t seem to have fixed my other bug report about this - the image pasting and bold issue still remains.
I’m noticing the reverse pasting issue (From anytype, to other locations) on my end as well. I tend to use anytype as an isolated writing space, and use Grammarly for editing. I’ll use Shift+Enter to create linebreaks within a block, but when I paste, all of these linebreaks are lost.
When using multiple blocks, there are linebreaks, but any blank lines, are missing. Meaning, if I had a blank line between two paragraphs, this gap is missing and the two paragraphs meet each other.
Let me know if this is unclear, or if anyone experiences this as well.
I recognize a related issue when having a blog of text with line breaks in the desktop app, these line breaks disappear in the mobile app. This makes editing difficult because it might corrupt the format.
My issue with copying and pasting is that the formatting is incorrect. The content gets pasted, but it seems like it picks up line breaks that don’t exist. Here’s an example of pasting content from an article:
I should also note that this isn’t unique to the source—tried with a handful of different publications, and Anytype is inserting line breaks after the first word in a paragraph as well as some random word (or length) in the string.