WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #45636, comment 5


Ignore:
Timestamp:
12/17/2018 09:39:57 AM (10 months ago)
Author:
subrataemfluence
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45636, comment 5

    v2 v3  
    77The Doc block of `function removep( hrml ) { ... }` (in **/wp-admin/js/editor.js**) states:
    88
    9 * Replaces <p> tags with two line breaks **except where the <p> has attributes**.
     9`Replaces <p> tags with two line breaks except where the <p> has attributes`
     10
     11
     12Line no. 918
     13
     14`html = html.replace( /\s*<\/p>\s*/gi, '\n\n' );`
     15
     16I think if we can get rid of this the issue might resolve.