[wp-trac] [WordPress Trac] #2669: Incorrect paragraphing around <hr /> horizontal rule tag

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 18 23:58:10 GMT 2006


#2669: Incorrect paragraphing around <hr /> horizontal rule tag
-----------------------+----------------------------------------------------
       Id:  2669       |      Status:  new                     
Component:  General    |    Modified:  Tue Apr 18 23:58:10 2006
 Severity:  normal     |   Milestone:                          
 Priority:  normal     |     Version:  2.0.2                   
    Owner:  anonymous  |    Reporter:  Justinsomnia            
-----------------------+----------------------------------------------------
 The following post content:

 {{{
 paragraph 1

 <hr />
 paragraph 2
 }}}

 should get paragraphified like this:

 {{{
 <p>
 paragraph 1
 </p>

 <hr />

 <p>
 paragraph 2
 </p>
 }}}

 Instead wpautop() creates the following invalid (X)HTML:

 {{{
 <p>graf 1</p>
 <hr /><br />
 graf 2

 </p>
 }}}

 note the extra </p> tag.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2669>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list