-
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
4.1: Heading blocks HTML often gets an invisible garbage trailing line break <br>
#11365
Comments
I tried testing with WordPress 4.9.8 and Gutenberg 4.2.0 using Firefox 63.0 on macOS 10.13.6 and couldn't reproduce the problem where |
Yes, I'm specifically calling out unintended line breaks. Like I said above, I'm not entirely sure yet what the process is to reliably produce them. They may also be remnants from some older Gutenberg version. I'll post here as soon as I find a more specific clue. Until then, maybe someone else also sees them and finds their way here. |
Thanks for clarifying. 🙂 May I also ask which version of the Gutenberg plugin you are testing with or if you are using WP 5.0 beta? And just to confirm, have you confirmed whether any plugins or if the theme you are using attempts to add or remove |
Anecdotally, I think I've seen it over the last few months of GB releases, and I usually update nearly instantly on releases.
I have These stray line breaks have been created and saved already during Gutenberg editing experience. They are part of content, not virtual rendering artefacts like with For example, something like "create header, write text, shift+enter force line break, write second line ... later delete second line" but maybe Gutenberg fails to also remove the trailing |
Tested and confirmed. Closing as a duplicate of #5872 as I think it's the same underlying issue. Let me know if you disagree though and we can re-visit! Steps to reproduce:
After creating a post with two headings, I can see a line break at the end of one of them: After editing the heading without a line break, I can see a line break is added: Seen at view-source:https://tan-otter.jurassic.ninja/wp-admin/post.php?post=94&action=edit running WordPress 4.9.8 and Gutenberg 4.5.1 using Firefox 63.0.3 on macOS 10.13.6. Another testing note:
|
Describe the bug
To Reproduce
Steps to reproduce the behavior:
<h2>Markup garbage bad<br></h2>
Expected behavior
Training invisible garbage should be unconditionally removed, probably even if the user has literally entered a shift+enter line-break.
<h2>Markup garbage bad</h2>
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: