Description

Using the WYSIWYG gui, if you use carrige return 3 times in a text - hoping to create some white space between text - i.e. like entering text1<br /><br /><br />text2 or <p>text1</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>text2</p> - the gui removes them and replace with single <p>text1</p><p>text2</p> which is one line of white space.

I understand that this kind of use may not be best practice, but it's the kind of thing normal users do, and wp is supposed to be a good all round user experience.

Oldest firstNewest firstThreaded

Comments only

Change History (20)

Thanks Mark. I aksed him to do that: please don't assign tickets to people without their permission. There are more people than matt that can fix your bug. If matt decides he wants to fix it, he can accept it.

Thanks Mark. I aksed him to do that: please don't assign tickets to people without their permission. There are more people than matt that can fix your bug. If matt decides he wants to fix it, he can accept it.

It automatically assigns it to Matt if it's in the WordPress.org component, I believe.

This is not a TinyMCE thing, it's wpautop that's doing it. And frankly, I think it's desired behavior. If they want vertical space, they should be using styles on the paragraph. Okay, not the best UX, but perhaps an easier way to insert a vertical space is called for instead of letting the user enter non-semantic P's and BR's?

Re-opening. You are thinking like developers not every day people. Originally this bug had some traction from Andy, and it still seems like the desirable behavior for most people, "I want more spaces on a line so I use the space bar"

The blank lines are stripped by wpautop(), both the js and php versions of it. This seems to be related to users complaining that they cannot enter <br /> tags in a post, but actually trying to produce invalid XHTML (which, of course, is auto-corrected).

Perhaps wpautop should be changed to replace 3 consecutive <br /> with <p>&nbsp;</p>.