Opened 5 years ago
Closed 4 years ago
#6041 closed defect (bug) (duplicate)
Paragraphs within List Items
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Formatting | Version: | 2.5 |
| Severity: | normal | Keywords: | wpautop |
| 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)
- Component changed from TinyMCE to General
- Keywords wpautop added
- Milestone changed from 2.5 to 2.6
comment:4
fool4christ — 5 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.
- Component changed from General to Formatting
- Owner anonymous deleted
- Milestone 2.9 deleted
- Resolution set to duplicate
- Status changed from new to closed
see #3833. the second patch fixes this as well.

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.