WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

#6041 closed defect (bug) (duplicate)

Paragraphs within List Items

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

Description

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)

comment:1 lloydbudd6 years ago

  • Component changed from General to TinyMCE

comment:2 lloydbudd6 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.

comment:3 lloydbudd6 years ago

Dup bug #6376 by same reporter :(

comment:4 fool4christ6 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.

comment:5 Denis-de-Bernardy5 years ago

  • Component changed from General to Formatting
  • Owner anonymous deleted

comment:7 Denis-de-Bernardy5 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.