-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
2 Linebreaks are converted to paragraph #11625
Comments
The bug is fixed in WP 5.0-beta3-43883 |
Sorry, I was to fast. |
I tested with WordPress 4.9.8, Gutenberg 4.3, and the Twenty Seventeen 1.7 theme using Chrome 70.0.3538.77 on macOS 10.13.6 and couldn't replicate linebreaks getting converted to paragraphs. (46s) May I ask whether you tested with WP4.9.8 or only with WP5.0-beta? May I ask what theme you used during testing and whether you know if the theme calls any filters or actions for |
WordPress (5.0-beta3-43891) and also with the new 5.0-beta4-43896 Insert Block Classic, write text, hit twice strg + enter, write text |
I tested with WordPress 4.9.8 with and without and Gutenberg 4.6.1 as well as with WordPress 5.0-RC2-43958.
Video: 1m28s To be honest, I am not 100% sure what the expected behavior is supposed to be so I will add the |
you are right. No idea, if this had another behavior in prior versions of WordPress (<4.9.8). However, also in WP without Gutenberg the linebreaks are converted to paragraph. |
Describe the bug
two linebreaks are converted to paragraph
To Reproduce
Steps to reproduce the behavior:
<br>
(two linebreaks, hit strg/control+enter/return)<p> text <br><br> text </p>
<p> text <br><br> text </p>
but is<p> text </p><p> text </p>
Expected behavior
Two linebreaks instead of paragraph is sometimes essential. E. g. in block paragraph, when you use the initial letter and set a background for the block paragraph. Since the second part is converted to a paragraph it will be separated, will have no background and does not flow around the inital letter.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: