[wp-trac] [WordPress Trac] #20444: wpautop acts on a single line of text

WordPress Trac noreply at wordpress.org
Mon Nov 4 15:08:54 UTC 2013


#20444: wpautop acts on a single line of text
--------------------------+------------------------------
 Reporter:  niallkennedy  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by mdbitz):

 Hi, the p tag is considered a blocking element. In this case the output
 from wpautop should be:

 {{{
 <div>
 <p>Hello world</p>
 <p><span>WordPress</span></p>
 </div>
 }}}

 I'm in the process of writing a comprehensive set of unit tests on the
 ''wpautop'' function to verify its current functionality and allow proper
 regression testing as new enhancements are requested. I've added the above
 as a test case to confirm that the second p tag is properly closed.

 It might be another week till it gets put up for review as there are a
 good amount of tickets to go through.

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


More information about the wp-trac mailing list