[wp-trac] Re: [WordPress Trac] #2285: Wpautop strips blank lines

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 13 22:47:32 GMT 2008


#2285: Wpautop strips blank lines
-------------------------+--------------------------------------------------
 Reporter:  linickx      |        Owner:  skeltoac
     Type:  enhancement  |       Status:  reopened
 Priority:  normal       |    Milestone:  2.6     
Component:  General      |      Version:  2.0     
 Severity:  normal       |   Resolution:          
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by azaozz):

  * summary:  Editor strips blank lines => Wpautop strips blank lines

Comment:

 The blank lines are stripped by wpautop(), both the js and php versions of
 it. This seems to be related to users complaining that they cannot enter
 <br /> tags in a post, but actually trying to produce invalid XHTML
 (which, of course, is auto-corrected).

 Perhaps wpautop should be changed to replace 3 consecutive <br /> with
 <p>&nbsp;</p>.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2285#comment:17>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list