[wp-trac] [WordPress Trac] #11202: automatic line breaks in comments

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 23 09:26:03 UTC 2009


#11202: automatic line breaks in comments
-------------------------+--------------------------------------------------
 Reporter:  Dunkelangst  |        Type:  defect (bug)
   Status:  new          |    Priority:  low         
Milestone:  3.0          |   Component:  Formatting  
  Version:  2.8.5        |    Severity:  normal      
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by Denis-de-Bernardy):

 Replying to [comment:2 azaozz]:
 > Seems this would need something similar to the `pre_wpautop` function in
 editor.dev.js (in PHP of course) but a lot simpler since only few HTML
 elements are allowed in comments.

 It's actually much simpler to fix. I've submitted a patch for this in
 another wpautop ticket somewhere (Formatting component). The only thing
 that's needed to sort out most of wpautop bugs is to toss in a \n\n
 character before *and* after opening and closing block elements. It never
 got committed for some reasons. I still fail to see how such a thing could
 harm or break, but anyway...

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


More information about the wp-trac mailing list