Make WordPress Core

Opened 16 years ago

Closed 15 years ago

#6041 closed defect (bug) (duplicate)

Paragraphs within List Items

Reported by: fool4christ's profile fool4christ Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Formatting Keywords: wpautop
Focuses: Cc:


When posting list items in the format of the following (I've noticed this with both LI & DD list item types), the first paragraph receives a closing P tag (but no opening tag) while any subsequent paragraphs are marked up properly. I've noticed this on 2.5-beta1.

<dd>paragraph 1

paragraph 2

paragraph 3</dd>

That results in this:

<dd>paragraph 1</p>
<p>paragraph 2</p>
<p>paragraph 3</p></dd>

Also, is there a reason why definition lists are ignored in the menus of the editor? Even the advanced editor doesn't even contain buttons for it. :(

Change History (7)

#1 @lloydbudd
16 years ago

  • Component changed from General to TinyMCE

#2 @lloydbudd
16 years ago

  • Component changed from TinyMCE to General
  • Keywords wpautop added
  • Milestone changed from 2.5 to 2.6

I'm guessing you entered the above in HTML mode. Please include the steps next time.

Pushing out b/c plenty of other bugs with edge case bugs with wpautop, need to be fixed systematically.

#3 @lloydbudd
16 years ago

Dup bug #6376 by same reporter :(

#4 @fool4christ
16 years ago

Yikes, sorry about the duplicate ticket. I wasn't being impatient; I had just forgotten about reporting it... Then I neglected to search. My bad. :\

While using the non-visual editor on WordPress 2.3, I created several posts with no problems using paragraphs within definition lists (which is a necessity if a definition is more than just a blurb). Then upon updating to WordPress 2.5 while during the release candidate trials, I edited one of those posts to fix something, which is when I noticed that the latest visual editor mangled a bit.

It might be an "edge case," but WordPress' handling of paragraphs and other typography has always been one of the reasons I even use the software. It only makes sense that the more robust such handling is, the better WordPress' reputation will be.

#5 @Denis-de-Bernardy
15 years ago

  • Component changed from General to Formatting
  • Owner anonymous deleted

#7 @Denis-de-Bernardy
15 years ago

  • Milestone 2.9 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

see #3833. the second patch fixes this as well.

Note: See TracTickets for help on using tickets.