[wp-trac] [WordPress Trac] #18136: WordPress Adding Spurious </p>
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 13 19:43:14 UTC 2012
#18136: WordPress Adding Spurious </p>
--------------------------+------------------------------
Reporter: singpolyma | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by azaozz):
Got it down to this:
- Extra closing P
{{{
<div><p>123</p> </div>
}}}
- Works as expected
{{{
<div><p>123</p></div>
}}}
Generally autop should ignore the whole content as there are no line
breaks in there. What happens in this case: autop inserts a line break
after the </p> and then threats the white space as another row.
A temporary workaround would be to remove all spaces between block tags.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18136#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list