[wp-trac] [WordPress Trac] #7937: Problem with the wpautop function ads a extra <p> tag if there is more span tag

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 9 18:11:08 UTC 2012


#7937: Problem with the wpautop function ads a extra <p> tag if there is more span
tag
--------------------------+------------------------
 Reporter:  keithdsouza   |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Template      |     Version:  2.7
 Severity:  normal        |  Resolution:  invalid
 Keywords:  wpautop       |
--------------------------+------------------------

Comment (by azaozz):

 Replying to [comment:2 WraithKenny]:
 > ... that it would be closed as "invalid" and blamed on user error.

 The user error is not respecting how the HTML editor (together with
 wpautop) works. In "pure" HTML code line breaks don't matter, however when
 using the HTML editor they are converted to <p> or <br>. So pasting or
 typing "formatted" HTML code in there sometimes won't work as expected.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/7937#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list