Pasted text is without line breaks

WHAT IS THE BUG

Pasting line breaks , empty rows of text doesn`t work.

HOW TO REPRODUCE IT

  1. Copy some text containing line breaks between paragraphs, like the one below.


*"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.*
*Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.*




* Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."*





*"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."*
  1. Paste it in anytype as text.
  2. See empty rows are gone.

THE EXPECTED BEHAVIOR

Formatting of pasted text should be preserved as much as possible.

SYSTEM INFORMATION

  • OS:
    Windows 10 1809 OS Build 17763.3887
  • Device:
    PC. Intel i7 5820K
  • Anytype Version:
    Anytype Desktop 0.30.0

ADDITIONAL CONTEXT

Seems like reintroduced bug like this one.

3 Likes

Thanks a bunch @ZOa!

This report has been added to our issue tracker and received by the Development Team.

I had to edit the sample text I provided and include it as code text because this editor here do not accept line breaks too.

1 Like

Ok, I updated the issue in our tracker :+1:

Hello, @ZOa, @Angelo !
We have decided on product level that pasting text with line breaks will lead to creation of multiple blocks in editor, as it is implemented right now (current version is v0.31.4-beta). Whitespaces trailing line breaks in this case will be ignored:
image

2 Likes