[wp-trac] [WordPress Trac] #33377: Wpautop may create extra <br> tags

WordPress Trac noreply at wordpress.org
Fri Aug 14 22:37:11 UTC 2015


#33377: Wpautop may create extra <br> tags
--------------------------+--------------------
 Reporter:  azaozz        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  4.3
Component:  Formatting    |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------
Changes (by azaozz):

 * keywords:  needs-patch => has-patch


Comment:

 In 33377.patch:
 - PHP wpautop: replace `<br>` and `<br/>` with `<br />` before converting
 line breaks.
 - JS wpautop: remove spaces and line breaks after existing `<br>` before
 converting line breaks.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33377#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list