Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#15564 closed defect (bug) (wontfix)

Sequential <br> tags are stripped from posts on update/publish

Reported by: markel's profile markel Owned by:
Milestone: Priority: normal
Severity: major Version: 3.1
Component: General Keywords:
Focuses: Cc:

Description

When using either the Visual Editor or the HTML editor, line breaks, either by entering the <br> tag or by using Shift+Return in the Visual Editor, are being stripped out when flipping from one mode to the other or when updating or publishing the post.

This leave authors with no way to reliably insert whitespace without the use of non-breaking spaces or images.

To reproduce:

  1. Create a new post.
  2. Populate it with some text as well as a few line breaks.
  3. Publish.

Change History (2)

#1 @azaozz
14 years ago

  • Resolution set to wontfix
  • Status changed from new to closed
  • Summary changed from <br> tags are stripped from posts on update/publish to Sequential <br> tags are stripped from posts on update/publish

I think you meant sequential tags as single <br> tags work properly. I'm not sure which one is worse:

<p>some text</p>
<br>
<br>
<br>

or

<p>some text</p>
<p>&nbsp;</p>

However most new browsers would disregard improperly used <br> and not show them as white space anyways.

#2 @nacin
14 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.