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

Merge between Preformatted and Paragraph blocks is removing all newlines. #18476

Closed
SergioEstevao opened this issue Nov 13, 2019 · 0 comments · Fixed by #18656 or #18809
Closed

Merge between Preformatted and Paragraph blocks is removing all newlines. #18476

SergioEstevao opened this issue Nov 13, 2019 · 0 comments · Fixed by #18656 or #18809
Assignees
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@SergioEstevao
Copy link
Contributor

SergioEstevao commented Nov 13, 2019

Describe the bug
When merging a paragraph block to a preformatted block all the newlines are removed

To reproduce
Steps to reproduce the behavior:

  1. Start a new post
  2. Add a preformatted block and write some content like this:
One
Two
Three

  1. Add a Paragraph block and write for example: Hello
  2. Put the cursor before Hello, and press backspace
  3. See the the content in the preformatted block all merged witthout new lines and multiple spaces:
    One Two Three Hello

Expected behavior

The block should be merge maintaining all the new lines and spaces.

Screenshots

Nov-13-2019 13-06-22

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser Safari
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser Safari
  • Version [e.g. 22]

Additional context
Gutenberg version: 6.9.0 rc1

@SergioEstevao SergioEstevao added the [Type] Bug An existing feature does not function as intended label Nov 13, 2019
@SergioEstevao SergioEstevao changed the title Merge betwen Preformatted and Paragraph blocks is removing all newlines. Merge between Preformatted and Paragraph blocks is removing all newlines. Nov 13, 2019
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
2 participants